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 ____CardBaseModifier = require("cards.CardBaseModifier") local CardBaseModifier = ____CardBaseModifier.CardBaseModifier local ____dota_ts_adapter = require("lib.dota_ts_adapter") local registerModifier = ____dota_ts_adapter.registerModifier ____exports.card_11 = __TS__Class() local card_11 = ____exports.card_11 card_11.name = "card_11" card_11.____file_path = "scripts/vscripts/cards/examples/card_11.lua" __TS__ClassExtends(card_11, CardBase) function card_11.prototype.GetModifierName(self) return "modifier_card_11" end card_11 = __TS__Decorate(card_11, card_11, {RegisterCard}, {kind = "class", name = "card_11"}) ____exports.card_11 = card_11 ____exports.modifier_card_11 = __TS__Class() local modifier_card_11 = ____exports.modifier_card_11 modifier_card_11.name = "modifier_card_11" modifier_card_11.____file_path = "scripts/vscripts/cards/examples/card_11.lua" __TS__ClassExtends(modifier_card_11, CardBaseModifier) function modifier_card_11.prototype.getValue(self, key, fallback) return self:getCardValue(key, fallback, 11) end function modifier_card_11.prototype.getPrimaryBonusPerLevel(self) return self:getValue("primary_attribute_bonus_per_level", 2) end function modifier_card_11.prototype.getUniversalAllBonusPerLevel(self) return self:getValue("universal_all_bonus_per_level", 1) end function modifier_card_11.prototype.getPrimaryAttribute(self) local parent = self:GetParent() return parent:GetPrimaryAttribute() end function modifier_card_11.prototype.DeclareFunctions(self) return {MODIFIER_PROPERTY_STATS_STRENGTH_BONUS, MODIFIER_PROPERTY_STATS_AGILITY_BONUS, MODIFIER_PROPERTY_STATS_INTELLECT_BONUS, MODIFIER_PROPERTY_TOOLTIP} end function modifier_card_11.prototype.GetModifierBonusStats_Strength(self) local level = self:GetParent():GetLevel() local primaryAttribute = self:getPrimaryAttribute() if primaryAttribute == DOTA_ATTRIBUTE_ALL then return self:getUniversalAllBonusPerLevel() * level * self:getCardCopies() end if primaryAttribute == DOTA_ATTRIBUTE_STRENGTH then return self:getPrimaryBonusPerLevel() * level * self:getCardCopies() end return 0 end function modifier_card_11.prototype.GetModifierBonusStats_Agility(self) local level = self:GetParent():GetLevel() local primaryAttribute = self:getPrimaryAttribute() if primaryAttribute == DOTA_ATTRIBUTE_ALL then return self:getUniversalAllBonusPerLevel() * level * self:getCardCopies() end if primaryAttribute == DOTA_ATTRIBUTE_AGILITY then return self:getPrimaryBonusPerLevel() * level * self:getCardCopies() end return 0 end function modifier_card_11.prototype.GetModifierBonusStats_Intellect(self) local level = self:GetParent():GetLevel() local primaryAttribute = self:getPrimaryAttribute() if primaryAttribute == DOTA_ATTRIBUTE_ALL then return self:getUniversalAllBonusPerLevel() * level * self:getCardCopies() end if primaryAttribute == DOTA_ATTRIBUTE_INTELLECT then return self:getPrimaryBonusPerLevel() * level * self:getCardCopies() end return 0 end modifier_card_11 = __TS__Decorate( modifier_card_11, modifier_card_11, {registerModifier(nil)}, {kind = "class", name = "modifier_card_11"} ) ____exports.modifier_card_11 = modifier_card_11 return ____exports