-- Key for code to find it with
key = "RegretMod",
-- The name of the file, for the code to pull the atlas from
path = "Regretevator.png",
-- Width of each sprite in 1x size
px = 71,
-- Height of each sprite in 1x size
py = 95
}
-- Mach
SMODS.Joker {
key = 'mach',
loc_txt = {
name = 'Mach',
text = {
"{C:white,X:mult} X#1# {} Mult"
}
},
config = { extra = { xmult = 1, xmult_gain = 1.5 } },
loc_vars = function(self, info_queue, card)
return { vars = { card.ability.extra.xmult_gain, card.ability.extra.xmult } }
end,
rarity = 1,
atlas = 'RegretMod',
pos = { x = 0, y = 0 },
soul_pos = { x = 0, y = 1},
cost = 7,
unlocked = true,
discovered = true,
blueprint_compat = true,
calculate = function(self, card, context)
if context.remove_playing_cards and not context.blueprint then
local stone_cards = 0
for _, removed_card in ipairs(context.removed) do
if SMODS.has_enhancement(removed_card, "m_stone") then
stone_cards = stone_cards + 1
end
end
if stone_cards > 0 then
card.ability.extra.xmult = card.ability.extra.xmult + stone_cards * card.ability.extra.xmult_gain
return {
message = localize {
type = 'variable',
key = 'a_xmult',
vars = { card.ability.extra.xmult }
}
}
end
if context.joker.main then
return {
xmult = card.ability.extra.xmult
}
end
end
end
}```