Add Escapey modifier

This commit is contained in:
Emik 2026-05-07 13:47:42 +02:00
parent c8ad1ac633
commit ccce830905
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 9 additions and 3 deletions

View file

@ -6,7 +6,7 @@
"author": [
"Emik"
],
"version": "2.3.0",
"version": "2.3.1",
"badge_colour": "8BE9FD",
"main_file": "src/main.lua",
"badge_text_colour": "44475A",

View file

@ -70,10 +70,16 @@ joker {
return {vars = {card.ability.extra.xmoney, card.ability.extra.money}}
end,
Bakery_can_use = function(_, card)
return not card.debuff and u() and (next(G.GAME.tags) or f(G.consumeables.cards):any(destructible))
return u() and
not card.debuff and
not G.GAME.modifiers.Roland_debuff_escapey and
(next(G.GAME.tags) or f(G.consumeables.cards):any(destructible))
end,
Bakery_use_button_text = function(_, card)
return localize {type = "variable", key = card.debuff and "b_Roland_debuffed" or "b_Roland_escape"}
return localize {
type = "variable",
key = (card.debuff or G.GAME.modifiers.Roland_debuff_escapey) and "b_Roland_debuffed" or "b_Roland_escape"
}
end,
Bakery_use_joker = function(self, card)
if card.debuff then