From 720d74a0b78b54806b7f5ab56b4d29b8b3716997 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sun, 1 Sep 2013 21:31:22 +0100 Subject: [PATCH] Internal bleeding tweaked. Cryo and Bicaridine will prevent IB from bleeding and getting worse. Bicaridine over 30 units will slowly heal IB. IB cannot be completely healed by bicaridine until 10 minutes after getting IB. Bleeding rate for IB reduced. --- code/modules/organs/organ_external.dm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index c4fe3de28b..8955f1fc35 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -321,14 +321,21 @@ // Internal wounds get worse over time. Low temperatures (cryo) stop them. if(W.internal && !W.is_treated() && owner.bodytemperature >= 170) - if(!owner.reagents.has_reagent("bicaridine")) //bicard stops internal wounds from growing bigger with time + if(!owner.reagents.has_reagent("bicaridine")) //bicard stops internal wounds from growing bigger with time, and also stop bleeding W.open_wound(0.1 * wound_update_accuracy) - owner.vessel.remove_reagent("blood",0.07 * W.damage * wound_update_accuracy) + owner.vessel.remove_reagent("blood",0.04 * W.damage * wound_update_accuracy) //This line causes the bleeding from internal organs. + if(owner.reagents.has_reagent("bicaridine") && (owner.reagents.get_reagent_amount("bicaridine") >= 30)) + var/healinternal = 0.2 + if(W.damage <= healinternal) + W.damage = 0 + else + W.damage -= healinternal if(prob(1 * wound_update_accuracy)) owner.custom_pain("You feel a stabbing pain in your [display_name]!",1) // slow healing var/heal_amt = 0 + if (W.damage < 15) //this thing's edges are not in day's travel of each other, what healing? heal_amt += 0.2