Add a "Use All" button for Spearmaster

This commit is contained in:
Emik 2026-05-23 18:31:41 +02:00
parent 2baf0c9d4a
commit 3181462f0c
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 12 additions and 1 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.6.4" "version": "1.6.5"
} }

View file

@ -386,6 +386,17 @@ SMODS.Joker {
blueprint_compat = false, blueprint_compat = false,
cost = Cryptid and 12 or 20, cost = Cryptid and 12 or 20,
rarity = Cryptid and epic or 4, 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 local orig_open = Card.open