Add Escapey modifier
This commit is contained in:
parent
c8ad1ac633
commit
ccce830905
2 changed files with 9 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue