Config Setting Addition

On the tin for allowing job change only if TIME OFF is also enabled.
This commit is contained in:
TheFurryFeline
2019-05-19 15:13:00 -04:00
parent 1d630cba18
commit 6f9928c028
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -2,9 +2,11 @@
// Lets read our settings from the configuration file on startup too!
//
//TFF 19/5/19 - Port VOREStation's completed Timeclock code - Config addition
/datum/configuration
var/list/engine_map // Comma separated list of engines to choose from. Blank means fully random.
var/time_off = FALSE
var/pto_job_change = FALSE
var/limit_interns = -1 //Unlimited by default
var/limit_visitors = -1 //Unlimited by default
var/pto_cap = 100 //Hours
@@ -33,6 +35,7 @@
if (!name)
continue
//TFF 19/5/19 - Port VOREStation's completed Timeclock code - add and set var to true if enabled in config.txt
switch (name)
if ("chat_webhook_url")
config.chat_webhook_url = value
@@ -52,5 +55,7 @@
config.pto_cap = text2num(value)
if ("time_off")
config.time_off = TRUE
if ("pto_job_change")
config.pto_job_change = TRUE
return 1
+3
View File
@@ -406,6 +406,9 @@ ENGINE_MAP Supermatter Engine,Edison's Bane
# Controls if the 'time off' system is used for determining if players can play 'Off-Duty' jobs (requires SQL)
# TIME_OFF
# If 'time off' system is on, controls whether or not players can switch on/off duty midround using timeclocks
# PTO_JOB_CHANGE
# Applies a limit to the number of assistants and visitors respectively
# LIMIT_INTERNS 6
# LIMIT_VISITORS 6