Files
2HUCardTDGame/scripts/vscripts/modifiers/modifier_attack_speed.lua
2021-10-24 15:36:18 -04:00

35 lines
577 B
Lua
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 攻速增加或降低800以上为降低
modifier_attack_speed = class({})
local public = modifier_attack_speed
local m_modifier_funcs=
{
MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT,
}
function public:IsHidden()
return true
end
function public:IsDebuff()
return false
end
function public:IsPurgable()
return false
end
function public:DeclareFunctions()
return m_modifier_funcs
end
function public:GetModifierAttackSpeedBonus_Constant()
if self:GetStackCount() <= 800 then
return self:GetStackCount()
else
return -(self:GetStackCount() - 800)
end
end