Merge pull request #12822 from Citadel-Station-13/silicons-patch-37

experimental change (testmerge this!): going from a higher slowdown to a lower slowdown will immediately allow you to move at the lower slowdown
This commit is contained in:
Lin
2020-07-27 11:33:04 -05:00
committed by GitHub
@@ -199,7 +199,13 @@ 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)
if(client.move_delay > world.time + 1.5)
client.move_delay -= diff
/// Get the move speed modifiers list of the mob
/mob/proc/get_movespeed_modifiers()