mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 07:32:02 +00:00
Announcing live test PRs (#5857)
* Implement one. * REVERT ME LATER * Initial implementation dooonnee. * log * Fixes * Lazyness squared
This commit is contained in:
@@ -992,22 +992,22 @@ var/list/gamemode_cache = list()
|
||||
if(!M)
|
||||
log_debug("GAMEMODE: ERROR: [M] does not exist!")
|
||||
continue
|
||||
|
||||
|
||||
var/can_start = M.can_start()
|
||||
if(can_start != GAME_FAILURE_NONE)
|
||||
log_debug("GAMEMODE: [M.name] cannot start! Reason: [can_start]")
|
||||
continue
|
||||
|
||||
|
||||
if(!probabilities[M.config_tag])
|
||||
log_debug("GAMEMODE: ERROR: [M.name] does not have a config associated with it!")
|
||||
continue
|
||||
|
||||
|
||||
if(probabilities[M.config_tag] <= 0)
|
||||
log_debug("GAMEMODE: ERROR: [M.name] has a probability equal or less than 0!")
|
||||
continue
|
||||
continue
|
||||
|
||||
runnable_modes |= M
|
||||
|
||||
|
||||
return runnable_modes
|
||||
|
||||
/datum/configuration/proc/post_load()
|
||||
@@ -1017,3 +1017,5 @@ var/list/gamemode_cache = list()
|
||||
config.python_path = "/usr/bin/env python2"
|
||||
else //probably windows, if not this should work anyway
|
||||
config.python_path = "python"
|
||||
|
||||
revdata.generate_greeting_info()
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user