From b0acc446f5c31f5109dab0ff896a047df23fd515 Mon Sep 17 00:00:00 2001 From: kiVts <48099872+kiVts@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:44:47 -0400 Subject: [PATCH 1/3] runtime fix --- code/modules/mob/dead/observer/observer.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index d4db6bccde83..6afee413d7c8 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -1038,7 +1038,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp for(var/role in mobs_by_role) for(var/freed_mob in mobs_by_role[role]) freed_mob_choices["[freed_mob] ([role])"] = freed_mob - + if(!length(freed_mob_choices)) + return var/choice = tgui_input_list(usr, "Pick a Freed Mob:", "Join as Freed Mob", freed_mob_choices) if(!choice) return From f474e5918fdfec23f0ea9000305ad548c068c8b1 Mon Sep 17 00:00:00 2001 From: kiVts <48099872+kiVts@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:46:55 -0400 Subject: [PATCH 2/3] ugh --- code/modules/mob/dead/observer/observer.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 6afee413d7c8..1c66d942ca18 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -1039,6 +1039,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp for(var/freed_mob in mobs_by_role[role]) freed_mob_choices["[freed_mob] ([role])"] = freed_mob if(!length(freed_mob_choices)) + to_chat(src, SPAN_WARNING("There is no Freed Mobs available.")) return var/choice = tgui_input_list(usr, "Pick a Freed Mob:", "Join as Freed Mob", freed_mob_choices) if(!choice) From 997bff7cf2fdbf16c67b3fd585f88b6483456711 Mon Sep 17 00:00:00 2001 From: kiVts <48099872+kiVts@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:51:28 -0400 Subject: [PATCH 3/3] Update code/modules/mob/dead/observer/observer.dm Co-authored-by: harryob <55142896+harryob@users.noreply.github.com> --- code/modules/mob/dead/observer/observer.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 1c66d942ca18..7f52beac6073 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -1039,7 +1039,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp for(var/freed_mob in mobs_by_role[role]) freed_mob_choices["[freed_mob] ([role])"] = freed_mob if(!length(freed_mob_choices)) - to_chat(src, SPAN_WARNING("There is no Freed Mobs available.")) + to_chat(src, SPAN_WARNING("There are no Freed Mobs available.")) return var/choice = tgui_input_list(usr, "Pick a Freed Mob:", "Join as Freed Mob", freed_mob_choices) if(!choice)