Makes syndicate depot structures Initialize() (#15120)

This commit is contained in:
AffectedArc07
2020-12-16 15:08:32 -05:00
committed by GitHub
parent 220fcc8856
commit 1843266a4a
6 changed files with 24 additions and 25 deletions
@@ -23,7 +23,7 @@
desc = "Red Operations, Depot General Emission Regulator"
icon_state = "ai-magma"
/mob/living/silicon/decoy/syndicate/New()
/mob/living/silicon/decoy/syndicate/Initialize(mapload)
. = ..()
icon_state = "ai-magma"
@@ -102,11 +102,10 @@
var/shield_key = FALSE
var/turf/spawn_turf
/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/New()
..()
/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/Initialize(mapload)
. = ..()
name = "[name] [pick(GLOB.last_names)]"
// Do not attempt to move this code to Initialize() or LateInitialize(). Doing so with other objects has caused bugs in the past, because assigning "depotarea" may not work there.
depotarea = areaMaster
depotarea = get_area(src)
spawn_turf = get_turf(src)