From 2483d6441434ef4c5310c1e5a7a723bda22f66b8 Mon Sep 17 00:00:00 2001 From: Qlonever <42286723+Qlonever@users.noreply.github.com> Date: Tue, 21 Nov 2023 18:07:49 +0300 Subject: [PATCH] [MIRROR] Addendum to #34339 --- code/modules/mob/living/carbon/human/human_damage.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index a0661e921b6e8..a8aafdf500a8d 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -152,10 +152,17 @@ return breathe_organ.get_oxygen_deprivation() /mob/living/carbon/human/setOxyLoss(amount) +<<<<<<< ours if(!need_breathe()) return 0 else adjustOxyLoss(getOxyLoss()-amount) +======= + if (!need_breathe()) + return + amount = (clamp(amount, 0, 100) - getOxyLoss()) / 100 + adjustOxyLoss(amount * species.total_health) +>>>>>>> theirs /mob/living/carbon/human/adjustOxyLoss(amount) if(!need_breathe())