From b5e7f7d204a0f0f67be20f963f0fc79421688eb9 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sat, 16 Mar 2013 15:28:46 +0400 Subject: [PATCH] Running around with fractures would damage internal organs inside of fractured areas. --- code/modules/organs/organ.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/organs/organ.dm b/code/modules/organs/organ.dm index e0d73cfdbb0..44464c53267 100644 --- a/code/modules/organs/organ.dm +++ b/code/modules/organs/organ.dm @@ -80,6 +80,13 @@ if(E.status & ORGAN_BROKEN && !(E.status & ORGAN_SPLINTED && prob(10)) ) broken = 1 + //Moving around with fractured ribs won't do you any good + if (broken && internal_organs && prob(15)) + if (!lying && world.timeofday - l_move_time < 15) + var/datum/organ/internal/I = pick(E.internal_organs) + custom_pain("You feel broken bones moving in your [E.display_name]!", 1) + I.take_damage(rand(3,5)) + //Special effects for limbs. if(E.name in list("l_hand","l_arm","r_hand","r_arm")) var/obj/item/c_hand //Getting what's in this hand