Removes life check and adds qdel stuff

This commit is contained in:
Vivalas
2017-06-23 00:19:46 -05:00
parent f3ff2d3f1a
commit fdfa737658
3 changed files with 2 additions and 5 deletions
@@ -66,6 +66,7 @@
/mob/living/carbon/human/Destroy()
QDEL_LIST(bodyparts)
QDEL_LIST(splinted_limbs)
return ..()
/mob/living/carbon/human/dummy
@@ -21,11 +21,6 @@
for(var/obj/item/organ/external/Ex in bodyparts)
bad_external_organs |= Ex
if(splinted_limbs.len) //clean up the splinted limbs list
for(var/obj/item/organ/external/splinted in splinted_limbs)
if(!(splinted.status & ORGAN_SPLINTED))
splinted_limbs -= splinted
//processing internal organs is pretty cheap, do that first.
for(var/obj/item/organ/internal/I in internal_organs)
I.process()
@@ -688,6 +688,7 @@ Note that amputating the affected organ does in fact remove the infection from t
/obj/item/organ/external/proc/update_splints()
if(!(status & ORGAN_SPLINTED))
owner.splinted_limbs -= src
return
if(owner.step_count >= splinted_count + SPLINT_LIFE)
status &= ~ORGAN_SPLINTED //oh no, we actually need surgery now!