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>
This commit is contained in:
Qwertytoforty
2023-01-19 15:40:13 -05:00
committed by GitHub
co-authored by Ryan
parent 74a206d8b0
commit de313cf3a5
+6 -4
View File
@@ -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, "<span class='warning'>...But the core was weakened, it is not close enough to the rest of the legions of the necropolis.</span>")
else
owner.bodytemperature = BODYTEMP_NORMAL
return TRUE