Fix Peppino visual bug, allow more cards selected with Gourmand

This commit is contained in:
Emik 2026-02-28 22:40:44 +01:00
parent 0d2d6ec7f5
commit 234b03d67a
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 13 additions and 6 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [
"Jen"
],
"version": "1.5.31"
"version": "1.5.32"
}

View file

@ -626,11 +626,7 @@ SMODS.Joker {
local count = food_jokers_count()
if context.joker_main and count > 0 then
return {
colour = G.C.DARK_EDITION,
message = operator .. card.ability.extra.base ^ count .. " Mult",
[Cryptid and "e_mult" or "x_mult"] = card.ability.extra.base ^ count,
}, true
return {[Cryptid and "e_mult" or "x_mult"] = card.ability.extra.base ^ count}
end
end,
}

View file

@ -218,6 +218,17 @@ function Card:nosuit()
return self.ability.name == "Stone Card" or self.config.center.no_suit
end
local orig_can_highlight = CardArea.can_highlight
function CardArea:can_highlight(...)
if self ~= G.hand or not next(SMODS.find_card("j_jane_gourmand")) then
return orig_can_highlight(self, ...)
end
self.config.highlighted_limit = math.max(self.config.highlighted_limit, 6)
return true
end
local orig_menu = Game.main_menu
function Game:main_menu(change_context)