From 9fbf4dde776a073bf185766af164014059df0d5e Mon Sep 17 00:00:00 2001 From: zimon9 <122945887+zimon9@users.noreply.github.com> Date: Sun, 19 Jan 2025 23:48:11 -0500 Subject: [PATCH] Reduces the chance of getting hurt from a broken bone if one is walking (#3996) ## About The Pull Request This PR reduces the probability to cause damage to a player from 5% per tile walked to 1% per tile walked if the player is in the walk intent mode. If they are in the run intent mode, the probability remains at 5%. ## Why It's Good For The Game I thought it might be a little flavorful to have it so that the chance to get hurt from a broken bone is reduced if one is walking instead of running, as it would imply that a character is attempting to avoid jostling their broken bone(s) around. I'm not sure if the probabilities should be tweaked a little, however. ## Changelog :cl: balance: The bone breakage damage proc now depends on the movement intent of a carbon. Walking reduces the proc call probability /:cl: --------- Signed-off-by: zimon9 <122945887+zimon9@users.noreply.github.com> Co-authored-by: Theos --- code/modules/surgery/bodyparts/bodyparts.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/surgery/bodyparts/bodyparts.dm b/code/modules/surgery/bodyparts/bodyparts.dm index 86735b49a9fb..5464c5279795 100644 --- a/code/modules/surgery/bodyparts/bodyparts.dm +++ b/code/modules/surgery/bodyparts/bodyparts.dm @@ -837,7 +837,7 @@ if(bone_status != BONE_FLAG_BROKEN || !owner || istype(owner?.buckled, /obj/structure/bed/roller)) return - if(prob(5)) + if(prob(owner.m_intent == MOVE_INTENT_RUN ? 5 : 1)) if(HAS_TRAIT(owner, TRAIT_ANALGESIA)) to_chat(owner, span_notice("[pick("You feel something shifting inside your [name].", "There is something moving inside [name].", "Something inside your [name] slips.")]")) else