From 7ece5aa1c34250682aae027ec62a6e4f13231716 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Wed, 27 Feb 2019 08:16:54 -0500 Subject: [PATCH] Water will no longer slip jogging spaceman, but only if the jogging spaceman has less than 20% staminaloss --- code/game/turfs/open.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/turfs/open.dm b/code/game/turfs/open.dm index 659a58b2dc..63b5f4b160 100644 --- a/code/game/turfs/open.dm +++ b/code/game/turfs/open.dm @@ -245,6 +245,10 @@ return 0 if(C.m_intent == MOVE_INTENT_WALK && (lube&NO_SLIP_WHEN_WALKING)) return 0 + if(ishuman(C) && (lube&NO_SLIP_WHEN_WALKING)) + var/mob/living/carbon/human/H = C + if(!H.sprinting && H.getStaminaLoss() >= 20) + return 0 if(!(lube&SLIDE_ICE)) to_chat(C, "You slipped[ O ? " on the [O.name]" : ""]!") playsound(C.loc, 'sound/misc/slip.ogg', 50, 1, -3)