Update _movespeed_modifier.dm

This commit is contained in:
silicons
2020-07-18 20:39:05 -07:00
committed by GitHub
parent 19dd73f9b4
commit 7fc7d5888a

View File

@@ -199,7 +199,12 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache)
else
continue
. += amt
var/old = cached_multiplicative_slowdown // CITAEDL EDIT - To make things a bit less jarring, when in situations where
// your delay decreases, "give" the delay back to the client
cached_multiplicative_slowdown = .
var/diff = old - cached_multiplicative_slowdown
if(diff > 0)
client.move_delay -= diff
/// Get the move speed modifiers list of the mob
/mob/proc/get_movespeed_modifiers()