From 6f9928c028015a9a1fbdf689d9ead4fd64893ae8 Mon Sep 17 00:00:00 2001 From: TheFurryFeline Date: Sun, 19 May 2019 15:13:00 -0400 Subject: [PATCH] Config Setting Addition On the tin for allowing job change only if TIME OFF is also enabled. --- code/controllers/configuration_vr.dm | 5 +++++ config/example/config.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/code/controllers/configuration_vr.dm b/code/controllers/configuration_vr.dm index 804fbc4ec8..2fe02b1f03 100644 --- a/code/controllers/configuration_vr.dm +++ b/code/controllers/configuration_vr.dm @@ -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 diff --git a/config/example/config.txt b/config/example/config.txt index d54e2456a2..f47e4a914a 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -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