Buff Hexagon

This commit is contained in:
Emik 2026-02-05 22:01:17 +01:00
parent 33e126fcb5
commit 000a508e35
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 9 additions and 5 deletions

View file

@ -92,7 +92,8 @@ return {
j_Roland_hexagon = {
name = "Hexagon",
text = {
"Earn {C:money}$#1#{} if",
"Gains {C:money}$#1#{} of",
"{C:attention}sell value{} if",
"played hand is a",
"{C:attention}Four of a Kind",
},

View file

@ -283,7 +283,7 @@ SMODS.Joker {
atlas = "void",
pronouns = "they_them",
pos = {x = 0, y = 0},
config = {extra = {money = 2}},
config = {extra = {money = 4}},
cost = 4,
rarity = 1,
eternal_compat = true,
@ -293,9 +293,12 @@ SMODS.Joker {
return {vars = {card.ability.extra.money}}
end,
calculate = function(_, card, context)
return context.joker_main and
context.scoring_name == "Four of a Kind" and
{dollars = card.ability.extra.money} or nil
if not context.joker_main or
context.scoring_name ~= "Four of a Kind" then
return
end
card.sell_cost = card.sell_cost + card.ability.extra.money
end,
}