Skip to content

Commit

Permalink
Join as freed mob no longer runtimes (#7064)
Browse files Browse the repository at this point in the history
# About the pull request

This would runtime if anyone pressed it and there is no freed mobs
found when doing the spawn_member pr
# Explain why it's good for the game

runtimes bad


# Changelog
:cl:
code: Join as freed mobs will now notify the user if there is no freed
mobs to take.
/:cl:

---------

Co-authored-by: harryob <[email protected]>
  • Loading branch information
kiVts and harryob authored Sep 7, 2024
1 parent 471e462 commit 74b29e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,9 @@ 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))
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)
return
Expand Down

0 comments on commit 74b29e7

Please sign in to comment.