SMODS.Atlas {
    key = "janejollyvoucher",
    px = 71,
    py = 95,
    path = Jane.config.texture_pack .. "/v_jane_jolly_voucher.png",
}

SMODS.Atlas {
    key = "janetokenvoucher",
    px = 71,
    py = 95,
    path = Jane.config.texture_pack .. "/v_jane_token_voucher.png",
}

SMODS.Voucher {
    key = "jolly_voucher",
    atlas = "janejollyvoucher",
    loc_txt = {
        name = "Jolly Voucher",
        text = {"{C:attention,T:c_jane_jokerinatarot}Joker-in-a-Tarot {}creates", "{C:attention,T:j_jolly}Jolly Joker {}instead"},
    },
    pos = {x = 0, y = 0},
    cost = 8,
    loc_vars = function(_, info_queue, _)
        info_queue[#info_queue + 1] = G.P_CENTERS.c_jane_jokerinatarot
        info_queue[#info_queue + 1] = G.P_CENTERS.j_jolly
        return {vars = {}}
    end,
}

SMODS.Voucher {
    key = "token_voucher",
    atlas = "janetokenvoucher",
    loc_txt = {
        name = "Token Voucher",
        text = {"{C:attention}Tokens {}can appear", "in the shop"},
    },
    pos = {x = 0, y = 0},
    cost = 15,
    redeem = function(_, _)
        G.GAME["jane_tokens_rate"] = 1.5
    end,
}
