MNoya / Element-TD

Element Tower Defense
http://www.eletd.com
64 stars 22 forks source link

Minimum speed to 50 #440

Closed WindStrike72 closed 8 years ago

WindStrike72 commented 8 years ago

Noya-senpai, I suck at figuring crap out despite my ability to partially redo life tower's ability, can you set the minimum movement speed down to 50?

vladmarica commented 8 years ago

I don't know if this is possible. It seems like the modifier function for MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE_MIN,GetModifierMoveSpeed_AbsoluteMin is never called.

MNoya commented 8 years ago

Doesn't this already work? If modifier_slow_adjustment:GetModifierMoveSpeed_Absolute() returns 50 the MS should be 50, there's no need to set a minimum I believe, but I could be wrong and having a Min is necessary.

vladmarica commented 8 years ago

I tested that, even if you return 50 from that function it is still 100 on the unit.

MNoya commented 8 years ago

There we go, needed to use Limit because Min is unlinked and Absolute is bugged below 100 in lua (works in datadriven)