Announcing live test PRs (#5857)

* Implement one.

* REVERT ME LATER

* Initial implementation dooonnee.

* log

* Fixes

* Lazyness squared
This commit is contained in:
Erki
2018-12-31 04:55:16 +02:00
committed by Werner
parent 746772f1c1
commit 2daef5c6b6
7 changed files with 122 additions and 14 deletions

View File

@@ -40,8 +40,9 @@ var/datum/controller/subsystem/ticker/SSticker
var/delay_end = 0 //if set to nonzero, the round will not restart on it's own
var/triai = 0 //Global holder for Triumvirate
var/tipped = 0 //Did we broadcast the tip of the day yet?
var/tipped = FALSE //Did we broadcast the tip of the day yet?
var/selected_tip // What will be the tip of the day?
var/testmerges_printed = FALSE
var/round_end_announced = 0 // Spam Prevention. Announce round end only once.
@@ -134,6 +135,10 @@ var/datum/controller/subsystem/ticker/SSticker
pregame_timeleft--
return
if (pregame_timeleft <= 20 && !testmerges_printed)
print_testmerges()
testmerges_printed = TRUE
if (pregame_timeleft <= 10 && !tipped)
send_tip_of_the_round()
tipped = TRUE
@@ -326,6 +331,12 @@ var/datum/controller/subsystem/ticker/SSticker
world << "<font color='purple'><b>Tip of the round: \
</b>[html_encode(m)]</font>"
/datum/controller/subsystem/ticker/proc/print_testmerges()
var/data = revdata.testmerge_overview()
if (data)
to_world(data)
/datum/controller/subsystem/ticker/proc/pregame()
set waitfor = FALSE
sleep(1) // Sleep so the MC has a chance to update its init time.