From 877fc584e7848b4e178889ef67ee0712c33aab3e Mon Sep 17 00:00:00 2001 From: d3athrow Date: Mon, 10 Mar 2014 21:03:11 -0500 Subject: [PATCH] Cut down on the checking in human_movement, hyperizine doesn't need to be checked twice. Conflicts: code/modules/mob/living/carbon/human/human_movement.dm --- code/modules/mob/living/carbon/human/human_movement.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index 32df867a023..e373133d90c 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -6,10 +6,14 @@ if (istype(loc, /turf/space)) return -1 // It's hard to be slowed down in space by... anything - if(embedded_flag) + if(embedded_flag) handle_embedded_objects() //Moving with objects stuck in you can cause bad times. - if(reagents.has_reagent("hyperzine")) return -1 + var/hyperizine = reagents.has_reagent("hyperizine") + if(hyperizine && dna.mutantrace == "slime") + tally *= 2 + else if(hyperizine || M_RUN in mutations || istype(loc, /turf/space)) + return -1 if(reagents.has_reagent("nuka_cola")) return -1