
SMODS.Joker{ --Faiz
    key = "faiz",
    config = {
        extra = {
            fives = 0,
            _5sindeck = 0
        }
    },
    loc_txt = {
        ['name'] = 'Faiz',
        ['text'] = {
            [1] = '{C:blue}+5{} Chips for every 5',
            [2] = 'in your deck.'
        },
        ['unlock'] = {
            [1] = 'Unlocked by default.'
        }
    },
    pos = {
        x = 9,
        y = 1
    },
    display_size = {
        w = 71 * 1, 
        h = 95 * 1
    },
    cost = 5,
    rarity = 1,
    blueprint_compat = true,
    eternal_compat = true,
    perishable_compat = true,
    unlocked = true,
    discovered = true,
    atlas = 'CustomJokers',
    pools = { ["kamenrider_kamenrider_jokers"] = true },
    
    loc_vars = function(self, info_queue, card)
        
    return {vars = {card.ability.extra.fives, ((function() local count = 0; for _, card in ipairs(G.playing_cards or {}) do if card.base.id == 5 then count = count + 1 end end; return count end)()) * 5}}
    end,
    
    calculate = function(self, card, context)
        if context.cardarea == G.jokers and context.joker_main  then
            return {
            chips = ((function() local count = 0; for _, card in ipairs(G.playing_cards or {}) do if card.base.id == 5 then count = count + 1 end end; return count end)()) * 5
            }
        end
    end
}