From 5fdb5fa0f0eb2f9c0e0934559557ca5194d208af Mon Sep 17 00:00:00 2001 From: Rhials <28870487+Rhials@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:43:13 -0400 Subject: [PATCH] Mob spawners now return their created mob after create_from_ghost (#76371) ## About The Pull Request create_from_ghost() now returns the body it produces. This should fix the pirate/fugitive ghost orbit notifications, since they expect to have a mob returned by this proc. Since the mob they expect to be returned is used as the subject for the ghost orbit popup, the popup would have no source and end up being blank. ## Why It's Good For The Game Players selected to play pirate/fugitive will now have a functioning orbit popup. --- code/modules/mob_spawn/mob_spawn.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob_spawn/mob_spawn.dm b/code/modules/mob_spawn/mob_spawn.dm index 8b72669769f..fe9240e9736 100644 --- a/code/modules/mob_spawn/mob_spawn.dm +++ b/code/modules/mob_spawn/mob_spawn.dm @@ -225,6 +225,8 @@ check_uses() // Now we check if the spawner should delete itself or not + return created + /obj/effect/mob_spawn/ghost_role/create(mob/mob_possessor, newname) if(!mob_possessor.key) // This is in the scenario that the server is somehow lagging, or someone fucked up their code, and we try to spawn the same person in twice. We'll simply not spawn anything and CRASH(), so that we report what happened. CRASH("Attempted to create an instance of [type] with a mob that had no ckey attached to it, which isn't supported by ghost role spawners!")