mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user