Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
game status in status topic
Browse files Browse the repository at this point in the history
  • Loading branch information
daxsc committed Feb 10, 2022
1 parent b6a5efe commit d9bbf9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@
.["revision"] = GLOB.revdata.commit
.["revision_date"] = GLOB.revdata.date
.["hub"] = GLOB.hub_visibility
var/game_status
switch(GLOB.SSTicker.current_state)
if(GAME_STATE_PREGAME, GAME_STATE_STARTUP)
game_status = "lobby"
if(COMSIG_TICKER_ERROR_SETTING_UP)
game_status = "starting"
if(GAME_STATE_PLAYING)
game_status = "playing"
if(GAME_STATE_FINISHED)
game_status = "finished"
else
game_status = "unknown"
.["game_status"] = game_status


var/list/adm = get_admin_counts()
Expand Down

0 comments on commit d9bbf9f

Please sign in to comment.