#I've *almost* got it figured out I think
1 messages · Page 1 of 1 (latest)
context.individual only works on cards that score, so I'm trying a workaround that should do the trick
This code works as you expect, but it doesn't shake each individual card.
calculate = function(self, card, context)
if context.joker_main then
if not context.blueprint then
for _, current_card in pairs(context.full_hand) do
local valid_card = true
for _, scoring_card in pairs(context.scoring_hand) do
if current_card == scoring_card then
valid_card = false
break
end
end
if valid_card then
card.ability.extra.chips = card.ability.extra.chips + card.ability.extra.chip_gain
card_eval_status_text(card, 'extra', nil, nil, nil, { message = localize('k_plus_planet'), colour = G.C.SECONDARY_SET.Planet})
end
end
end
return {
chip_mod = card.ability.extra.chips,
colour = G.C.CHIPS,
message = localize { type = 'variable', key = 'a_chips', vars = { card.ability.extra.chips } }
}
end
end
@slate shoal
ohmygosh thank you so much!!!
np