mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Initialize fixing (#10335)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2e725a0727
commit
ce2446922e
@@ -14,7 +14,7 @@
|
||||
var/datum/ai_holder/ai_holder = null
|
||||
var/ai_holder_type = null // Which ai_holder datum to give to the mob when initialized. If null, nothing happens.
|
||||
|
||||
/mob/living/Initialize()
|
||||
/mob/living/Initialize(mapload)
|
||||
if(!ai_holder)
|
||||
initialize_ai_holder()
|
||||
return ..()
|
||||
@@ -29,7 +29,7 @@
|
||||
ai_holder.manage_processing(AI_PROCESSING)
|
||||
return ..()
|
||||
|
||||
//Extracted from mob/living/Initialize() so that we may call it at any time after a mob was created
|
||||
//Extracted from mob/living/Initialize(mapload) so that we may call it at any time after a mob was created
|
||||
/mob/living/proc/initialize_ai_holder()
|
||||
if(ai_holder) //Making double sure we clean up and properly GC the original ai_holder
|
||||
var/old_holder = ai_holder
|
||||
|
||||
Reference in New Issue
Block a user