Configuration option for time_off

This commit is contained in:
Arokha Sieyes
2018-01-28 20:58:03 -05:00
parent 090c9bd265
commit 446e0f30e3
4 changed files with 18 additions and 11 deletions

View File

@@ -4,8 +4,7 @@
/datum/configuration
var/list/engine_map // Comma separated list of engines to choose from. Blank means fully random.
var/assistants_ratio
var/assistants_assured = 15 // Default 15, only used if the ratio is set though.
var/time_off = FALSE
/hook/startup/proc/read_vs_config()
var/list/Lines = file2list("config/config.txt")
@@ -32,10 +31,6 @@
continue
switch (name)
if ("assistants_ratio")
config.assistants_ratio = text2num(value)
if ("assistants_assured")
config.assistants_assured = text2num(value)
if ("chat_webhook_url")
config.chat_webhook_url = value
if ("chat_webhook_key")
@@ -46,5 +41,7 @@
config.fax_export_dir = value
if ("items_survive_digestion")
config.items_survive_digestion = 1
if ("time_off")
config.time_off = TRUE
return 1