SMODS.Joker {
key = "hyper",
loc_txt = {
name = "Hyperpigmentation",
text = {
"The Joker to the left",
"is considered a {C:attention}Lucky{}",
"card when triggered",
}
},
pos = {x = 0, y = 1},
atlas = "Jokers",
config = {
extra = {
mult = 20,
dollars = 20,
mult_odds = 5,
dollars_odds = 15
}
},
rarity = 2,
cost = 6,
blueprint_compat = false,
eternal_compat = true,
unlocked = true,
discovered = true,
loc_vars = function(self, info_queue, card)
info_queue[#info_queue + 1] = G.P_CENTERS.m_lucky
return {vars = {
card.ability.extra.mult,
card.ability.extra.dollars,
card.ability.extra.mult_odds,
card.ability.extra.dollars_odds
}}
end,
calculate = function(self, card, context)
if (context.post_trigger or context.forcetrigger) and context.other_card ~= card and context.other_card.config and context.other_card.config.center
and context.other_card.config.center.blueprint_compat
and not context.end_of_round then
local left_joker = nil
for i = 1, #G.jokers.cards do
if G.jokers.cards[i] == card then
left_joker = G.jokers.cards[i - 1]
break
end
end