local ____lualib = require("lualib_bundle") local __TS__Class = ____lualib.__TS__Class local __TS__ClassExtends = ____lualib.__TS__ClassExtends local __TS__Decorate = ____lualib.__TS__Decorate local ____exports = {} local ____CardSystem = require("cards.CardSystem") local CardBase = ____CardSystem.CardBase local RegisterCard = ____CardSystem.RegisterCard local ____card_value_resolver = require("cards.card_value_resolver") local getCardValueByLevel = ____card_value_resolver.getCardValueByLevel local ____crystal_currency = require("crystal_currency") local GetCrystalCurrency = ____crystal_currency.GetCrystalCurrency local CARD_ID = 61 ____exports.card_61 = __TS__Class() local card_61 = ____exports.card_61 card_61.name = "card_61" card_61.____file_path = "scripts/vscripts/cards/examples/card_61.lua" __TS__ClassExtends(card_61, CardBase) function card_61.prototype.OnCreated(self) if not IsServer() then return end local hero = self:GetHero() if not hero or not IsValidEntity(hero) or not hero:IsRealHero() then return end local playerId = hero:GetPlayerOwnerID() if playerId == nil or playerId == nil or playerId < 0 then return end local crystalsReward = math.max( 0, math.floor(getCardValueByLevel( nil, CARD_ID, hero, "crystals_reward", 25 )) ) if crystalsReward <= 0 then return end GetCrystalCurrency(nil):addCrystals(playerId, crystalsReward) end function card_61.prototype.GetModifierName(self) return nil end function card_61.prototype.IsHidden(self) return true end card_61 = __TS__Decorate(card_61, card_61, {RegisterCard}, {kind = "class", name = "card_61"}) ____exports.card_61 = card_61 return ____exports