Buff new joker

This commit is contained in:
Emik 2026-03-19 12:46:08 +01:00
parent 78136a494c
commit 59e9d43703
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 19 additions and 9 deletions

View file

@ -258,6 +258,10 @@ return {
"least {C:attention}#2# suits", "least {C:attention}#2# suits",
}, },
}, },
j_Roland_suitable = {
name = "Suitable",
text = {"{V:1}#1# {}are {C:attention}Wild", "Suit changes every round"},
},
j_Roland_sunny = { j_Roland_sunny = {
name = "Sunny Side Up", name = "Sunny Side Up",
text = { text = {

View file

@ -558,8 +558,8 @@ joker {
key = "yard", key = "yard",
pronouns = "he_him", pronouns = "he_him",
config = {extra = {money = 2}}, config = {extra = {money = 2}},
cost = 6, cost = 4,
rarity = 2, rarity = 1,
eternal_compat = true, eternal_compat = true,
blueprint_compat = true, blueprint_compat = true,
perishable_compat = true, perishable_compat = true,
@ -580,9 +580,10 @@ joker {
eternal_compat = true, eternal_compat = true,
blueprint_compat = false, blueprint_compat = false,
perishable_compat = true, perishable_compat = true,
loc_vars = function(_, _) loc_vars = function(_, info_queue)
table.insert(info_queue, G.P_CENTERS.m_wild)
local suit = (G.GAME.current_round.Roland_suitable or {}).suit or "Spades" local suit = (G.GAME.current_round.Roland_suitable or {}).suit or "Spades"
return {vars = {localize(suit, "suits_singular"), colours = {G.C.SUITS[suit]}}} return {vars = {localize(suit, "suits_plural"), colours = {G.C.SUITS[suit]}}}
end, end,
} }
@ -594,12 +595,17 @@ function SMODS.current_mod.reset_game_globals()
suitable.suit = card and card.base.suit or suitable.suit suitable.suit = card and card.base.suit or suitable.suit
end end
local orig_has_any_suit = SMODS.has_any_suit local orig_get_enhancements = SMODS.get_enhancements
function SMODS.has_any_suit(card, ...) function SMODS.get_enhancements(card, ...)
return next(SMODS.find_card "j_Roland_suitable") and if not next(SMODS.find_card "j_Roland_suitable") or
card.base.suit == G.GAME.current_round.Roland_suitable.suit or card.base.suit ~= G.GAME.current_round.Roland_suitable.suit then
orig_has_any_suit(card, ...) return orig_get_enhancements(card, ...)
end
local ret = orig_get_enhancements(card, ...) or {}
table.insert(ret, "m_wild")
return ret
end end
joker { joker {