new to init (the rest of them) part 1 (#17052)

This commit is contained in:
Cameron Lennox
2025-02-05 14:05:41 -05:00
committed by GitHub
parent 8081f42210
commit d02c67d6de
18 changed files with 387 additions and 109 deletions
@@ -268,12 +268,15 @@ var/global/list/obj/item/communicator/all_communicators = list()
// Parameters: None
// Description: Gives ghosts an exonet address based on their key and ghost name.
/mob/observer/dead/Initialize()
. = ..()
..()
return INITIALIZE_HINT_LATELOAD
/mob/observer/dead/LateInitialize()
exonet = new(src)
if(client)
exonet.make_address("communicator-[src.client]-[src.client.prefs.real_name]")
exonet.make_address("communicator-[client]-[client.prefs.real_name]")
else
exonet.make_address("communicator-[key]-[src.real_name]")
exonet.make_address("communicator-[key]-[real_name]")
// Proc: Destroy()
// Parameters: None
@@ -55,4 +55,7 @@
/obj/structure/ghost_pod/ghost_activated/Initialize(var/mapload)
. = ..()
if(!mapload)
ghostpod_startup(spawn_active)
return INITIALIZE_HINT_LATELOAD
/obj/structure/ghost_pod/LateInitialize()
ghostpod_startup(spawn_active)