Adds the ability to have random lobby screens.

A random lobby screen is now picked at server start, and presented to all players. Sadly in our case we currently only have one every day lobby screen.
Port of https://github.com/PolarisSS13/Polaris/pull/321, with added sanity checking.
This commit is contained in:
PsiOmegaDelta
2015-12-01 15:55:18 +01:00
parent 009dd07a32
commit a32be3f359
3 changed files with 27 additions and 1 deletions
+5
View File
@@ -6,6 +6,8 @@ var/list/gamemode_cache = list()
var/nudge_script_path = "nudge.py" // where the nudge.py script is located
var/list/lobby_screens = list("title") // Which lobby screens are available
var/log_ooc = 0 // log OOC channel
var/log_access = 0 // log login/logout
var/log_say = 0 // log client say
@@ -694,6 +696,9 @@ var/list/gamemode_cache = list()
if(values.len > 0)
language_prefixes = values
if ("lobby_screens")
config.lobby_screens = text2list(value, ";")
else
log_misc("Unknown setting in configuration: '[name]'")