Fix Set Odyssey (#21914)

This PR fixes the Set Odyssey verb to work after server initialization,
but before the round has actually started. It can actually be run even
before the round type has been voted for.

 I have actually tested this PR and verified that it works.
This commit is contained in:
VMSolidus
2026-02-21 16:07:46 -05:00
committed by GitHub
parent 738b72e0b9
commit 0004c09e9d
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -1399,11 +1399,14 @@ var/global/enabled_spooking = 0
/datum/admins/proc/set_odyssey()
set name = "Set Odyssey Type"
set category = "Special Verbs"
if (!SSodyssey.initialized)
to_chat(usr, SPAN_WARNING("You must wait for the server to finish initializing."))
return
if(!check_rights(R_ADMIN))
return
if(SSticker.current_state != GAME_STATE_SETTING_UP)
if(SSticker.current_state > GAME_STATE_SETTING_UP)
to_chat(usr, SPAN_WARNING("You need to use this verb while the game is still setting up!"))
return