Add a "Use All" button for Spearmaster
This commit is contained in:
parent
2baf0c9d4a
commit
3181462f0c
2 changed files with 12 additions and 1 deletions
|
|
@ -17,5 +17,5 @@
|
|||
"conflicts": [
|
||||
"Jen"
|
||||
],
|
||||
"version": "1.6.4"
|
||||
"version": "1.6.5"
|
||||
}
|
||||
|
|
@ -386,6 +386,17 @@ SMODS.Joker {
|
|||
blueprint_compat = false,
|
||||
cost = Cryptid and 12 or 20,
|
||||
rarity = Cryptid and epic or 4,
|
||||
Bakery_can_use = function(_, card)
|
||||
return not card.debuff and Jane.can_use() and next(G.pack_cards.cards)
|
||||
end,
|
||||
Bakery_use_button_text = function() return "USE ALL" end,
|
||||
Bakery_use_joker = function()
|
||||
local c = G.pack_cards.cards
|
||||
|
||||
for i = #c, 1, -1 do
|
||||
local _ = (((c[i] or {}).ability or {}).consumeable or {}).hand_type and c[i]:use_consumeable()
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
local orig_open = Card.open
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue