Adjusts CE_SPEEDBOOST to not just return -3

This commit is contained in:
Screemonster
2017-02-07 00:48:43 +00:00
parent e5ba7ac622
commit cdc4e6e0f8
@@ -13,9 +13,6 @@
if(force_max_speed)
return -3 // Returning -1 will actually result in a slowdown for Teshari.
if(CE_SPEEDBOOST in chem_effects)
return -3
var/health_deficiency = (maxHealth - health)
if(health_deficiency >= 40) tally += (health_deficiency / 25)
@@ -79,6 +76,11 @@
var/obj/item/pulled = pulling
tally += max(pulled.slowdown, 0)
if(CE_SPEEDBOOST in chem_effects)
if (tally >= 0) // cut any penalties in half
tally = tally/2
tally -= 1 // give 'em a buff on top.
return (tally+config.human_delay)
/mob/living/carbon/human/Process_Spacemove(var/check_drift = 0)