SMODS.Back {
key = "phantom",
-- unlocked = false,
loc_txt = {
name = 'Phantom Deck',
text = {
"Start with {C:tarot}Crystal Ball{} and",
"{C:tarot}Omen Globe{}",
"start with an {C:spectral}Ectoplasm{} card",
""
}
},
atlas = 'kamisdecks',
pos = { x = 0, y = 0 },
config = { extra = { vouchers = { 'v_crystal_ball', 'v_omen_globe' }, consumables = { 'c_ectoplasm' } } },
loc_vars = function(self, info_queue, back)
return { vars = {
localize { type = 'name_text', key = self.config.extra.vouchers[1], set = 'Voucher' },
localize { type = 'name_text', key = self.config.extra.vouchers[2], set = 'Voucher' },
self.config.extra.consumables[1]
} }
end,
apply = function(self, back)
for k, v in pairs(self.config.extra.consumables, self.config.extra.vouchers) do
G.GAME.used_vouchers[v] = true
G.GAME.starting_voucher_count = (G.GAME.starting_voucher_count or 0) + 1
G.E_MANAGER:add_event(Event({
func = function()
SMODS.add_card({ key = k })
back.apply_to_run(nil, G.P_CENTERS[v])
return true
end
}))
end
end
}
fixed it i think but i came across a new crash







