Skip to content

Commit 1ebf8c5

Browse files
committed
mednano bone fix
1 parent 2a67c40 commit 1ebf8c5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

code/modules/reagents/reagents/reagents_medical.dm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,13 +1042,17 @@ var/global/list/charcoal_doesnt_remove=list(
10421042
for(var/datum/wound/internal_bleeding/W in E.wounds)
10431043
W.heal_damage(0.8, TRUE)
10441044
holder.remove_reagent(MEDNANOBOTS, 0.25)
1045+
if (E.status & ORGAN_BROKEN)
1046+
E.status &= ~ORGAN_BROKEN //What do I owe you?
1047+
E.status &= ~ORGAN_SPLINTED //Nothing, it's for free!
1048+
holder.remove_reagent(MEDNANOBOTS, 0.10)
1049+
if (E.status & ORGAN_BLEEDING)
1050+
E.status &= ~ORGAN_BLEEDING //FOR FREE?!
1051+
holder.remove_reagent(MEDNANOBOTS, 0.10)
10451052
for(var/datum/organ/internal/I in H.internal_organs)
10461053
if(I.damage)
10471054
I.damage = max(0, I.damage - 5) //Heals a whooping 5 organ damage.
10481055
holder.remove_reagent(MEDNANOBOTS, 0.10) //Less so it doesn't vanish the nanobot supply
1049-
I.status &= ~ORGAN_BROKEN //What do I owe you?
1050-
I.status &= ~ORGAN_SPLINTED //Nothing, it's for free!
1051-
I.status &= ~ORGAN_BLEEDING //FOR FREE?!
10521056
if(M.getOxyLoss() || M.getBruteLoss(TRUE) || M.getToxLoss() || M.getFireLoss(TRUE) || M.getCloneLoss())
10531057
M.adjustOxyLoss(-5)
10541058
M.heal_organ_damage(5, 5) //Heals Brute and Burn. It heals the mob, not individual organs.

0 commit comments

Comments
 (0)