Files
2HUCardTDGame/game/scripts/vscripts/modifiers/modifier_move_speed.lua
2021-11-10 08:48:00 -05:00

35 lines
608 B
Lua
Executable File
Raw 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.
-- 速度增加或降低固定值每层加1超过800层则降低1
modifier_move_speed = class({})
local public = modifier_move_speed
local m_modifier_funcs=
{
MODIFIER_PROPERTY_MOVESPEED_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:GetModifierMoveSpeedBonus_Constant()
if self:GetStackCount() <= 800 then
return self:GetStackCount()
else --减速
return -(self:GetStackCount() - 800)
end
end