Consolidates some /Destroy()s to make them properly delete (#17046)

* The mob/living/Destroy() consolidation

* The mob/Destroy() consolidation

* The /mob/living/carbon/human consolidation

* The datum/Destroy() Consolidation

* The /atom/movable/Destroy() Consolidation

* for human
This commit is contained in:
Cameron Lennox
2025-02-14 03:06:25 +01:00
committed by GitHub
parent 900d0144a7
commit b1fc0d4c70
19 changed files with 47 additions and 84 deletions
-10
View File
@@ -19,16 +19,6 @@
initialize_ai_holder()
return ..()
/mob/living/Destroy()
if(ai_holder)
ai_holder.holder = null
ai_holder.UnregisterSignal(src,COMSIG_MOB_STATCHANGE)
if(ai_holder.faction_friends && ai_holder.faction_friends.len) //This list is shared amongst the faction
ai_holder.faction_friends -= src
ai_holder.faction_friends = null
QDEL_NULL(ai_holder)
return ..()
/mob/living/Login()
if(!stat && ai_holder)
ai_holder.manage_processing(AI_NO_PROCESS)
-5
View File
@@ -14,11 +14,6 @@
say_list = new say_list_type(src)
return ..()
/mob/living/Destroy()
QDEL_NULL(say_list)
return ..()
/datum/say_list
var/list/speak = list() // Things the mob might say if it talks while idle.
var/list/emote_hear = list() // Hearable emotes it might perform