local jokerInfo = {
    name = "ENDLESS TRASH",
    config = {
        extra = 1,
    },
    rarity = 1,
    cost = 4,
    blueprint_compat = true,
    eternal_compat = true,
    perishable_compat = true,
    streamer = "othervinny",
    csau_dependencies = {
        'enableVHSs',
    },
    csau_filters = {
        require = {
            config = {
                enableVHSs = true,
            }
        }
    },
    origin = {
        'rlm',
        'rlm_hitb',
        color = 'rlm'
    }
}

function jokerInfo.loc_vars(self, info_queue, card)
    info_queue[#info_queue+1] = {key = "csau_artistcredit", set = "Other", vars = { G.csau_team.yunkie } }
    return { vars = { card.ability.extra } }
end

function jokerInfo.calculate(self, card, context)
    if context.setting_blind and not card.debuff and not context.blueprint then
        if not (context.blueprint_card or card).getting_sliced then
            local count = G.FUNCS.get_vhs_count()
            if count > 0 then
                G.E_MANAGER:add_event(Event({func = function()
                    ease_discard(card.ability.extra*count)
                    card_eval_status_text(context.blueprint_card or card, 'extra', nil, nil, nil, {message = "+"..count.." "..localize('k_hud_discards')})
                    return true
                end }))
            end
        end
    end
end

return jokerInfo
	
