Skip to content

Commit

Permalink
Merge pull request tgstation#37761 from MrStonedOne/patch-503
Browse files Browse the repository at this point in the history
Adds time_dilation info to status topic.
  • Loading branch information
Cyberboss authored May 10, 2018
2 parents 1f887a4 + 22f6274 commit 58ed2f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,16 @@
.["security_level"] = get_security_level()
.["round_duration"] = SSticker ? round((world.time-SSticker.round_start_time)/10) : 0
// Amount of world's ticks in seconds, useful for calculating round duration

//Time dilation stats.
.["time_dilation_current"] = SStime_track.time_dilation_current
.["time_dilation_avg"] = SStime_track.time_dilation_avg
.["time_dilation_avg_slow"] = SStime_track.time_dilation_avg_slow
.["time_dilation_avg_fast"] = SStime_track.time_dilation_avg_fast

if(SSshuttle && SSshuttle.emergency)
.["shuttle_mode"] = SSshuttle.emergency.mode
// Shuttle status, see /__DEFINES/stat.dm
.["shuttle_timer"] = SSshuttle.emergency.timeLeft()
// Shuttle timer, in seconds

0 comments on commit 58ed2f0

Please sign in to comment.