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 CARD_ID = 59 ____exports.card_59 = __TS__Class() local card_59 = ____exports.card_59 card_59.name = "card_59" card_59.____file_path = "scripts/vscripts/cards/examples/card_59.lua" __TS__ClassExtends(card_59, CardBase) function card_59.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 xpReward = math.max( 0, math.floor(getCardValueByLevel( nil, CARD_ID, hero, "xp_reward", 1500 )) ) if xpReward <= 0 then return end hero:AddExperience(xpReward, DOTA_ModifyXP_Unspecified, false, true) end function card_59.prototype.GetModifierName(self) return nil end function card_59.prototype.IsHidden(self) return true end card_59 = __TS__Decorate(card_59, card_59, {RegisterCard}, {kind = "class", name = "card_59"}) ____exports.card_59 = card_59 return ____exports