Skip to content
Snippets Groups Projects
Commit 05af7f2e authored by dg's avatar dg
Browse files

Changed how movement speed bonuses affect actors, to prevent running into the negatives!

git-svn-id: http://svn.net-core.org/repos/t-engine4@2963 51575b47-30f0-44d4-a5cc-537603b46e54
parent a730f5c7
No related branches found
No related tags found
No related merge requests found
......@@ -738,7 +738,10 @@ end
--- Computes movement speed
function _M:combatMovementSpeed()
return util.bound(1 + (self.movement_speed or 0), 0.2, 10)
local v = util.bound(1 + (self.movement_speed or 0), 0.2, 10)
if v >= 1 then return v
else return math.pow(0.4, 1 - v)
end
end
--- Check if the actor has a gem bomb in quiver
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment