Fixes simple_animals not deleting properly (#24618)

* Fixes simple_animals not deleting properly

* Merging both /mob/living/New()
This commit is contained in:
adrian
2019-10-28 13:29:44 -03:00
committed by Kurfursten
parent fa644522ac
commit c32c6fc98b
2 changed files with 11 additions and 16 deletions

View File

@@ -18,6 +18,9 @@
immune_system = new (src)
on_resist = new(owner = src)
on_life = new(owner = src)
/mob/living/Destroy()
for(var/mob/living/silicon/robot/mommi/MoMMI in player_list)
for(var/image/I in static_overlays)
@@ -42,6 +45,14 @@
qdel(immune_system)
immune_system = null
if(on_resist)
qdel(on_resist)
on_resist = null
if(on_life)
qdel(on_life)
on_life = null
. = ..()
/mob/living/examine(var/mob/user, var/size = "", var/show_name = TRUE, var/show_icon = TRUE) //Show the mob's size and whether it's been butchered
@@ -794,18 +805,6 @@ Thanks.
/mob/living
var/event/on_resist
/mob/living/New()
. = ..()
on_resist = new(owner = src)
on_life = new(owner = src)
/mob/living/Destroy()
. = ..()
qdel(on_resist)
on_resist = null
qdel(on_life)
on_life = null
/mob/living/verb/resist()
set name = "Resist"
set category = "IC"