From de313cf3a5f5c1420d8460f4825512700207e02b Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Thu, 19 Jan 2023 15:40:13 -0500 Subject: [PATCH] Legion cores no longer fix bones / ib on station, unless implanted. (#20176) * legion cores no longer fix bones / ib on station. * Apply suggestions from code review Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --- code/datums/status_effects/buffs.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/datums/status_effects/buffs.dm b/code/datums/status_effects/buffs.dm index 26666607c06..1eabaeac840 100644 --- a/code/datums/status_effects/buffs.dm +++ b/code/datums/status_effects/buffs.dm @@ -344,10 +344,12 @@ if(ishuman(owner)) var/mob/living/carbon/human/H = owner H.bodytemperature = H.dna.species.body_temperature - for(var/thing in H.bodyparts) - var/obj/item/organ/external/E = thing - E.fix_internal_bleeding() - E.mend_fracture() + if(is_mining_level(H.z)) + for(var/obj/item/organ/external/E in H.bodyparts) + E.fix_internal_bleeding() + E.mend_fracture() + else + to_chat(owner, "...But the core was weakened, it is not close enough to the rest of the legions of the necropolis.") else owner.bodytemperature = BODYTEMP_NORMAL return TRUE