basic config stuff

This commit is contained in:
deathride58
2017-09-19 20:29:03 -04:00
parent d2ffa0def6
commit e0837a45b6
3 changed files with 24 additions and 2 deletions

View File

@@ -1,9 +1,10 @@
/datum/controller/subsystem/ticker/proc/generate_crew_objectives()
for(var/datum/mind/crewMind in SSticker.minds)
if(prob(10) && !issilicon(crewMind.current) && GLOB.master_mode != "extended")//extended is supposed to have less chaos
if(prob(10) && !issilicon(crewMind.current) && GLOB.miscreants_allowed)
generate_miscreant_objectives(crewMind)
else
generate_individual_objectives(crewMind)
if(config.allow_crew_objectives)
generate_individual_objectives(crewMind)
return
/datum/controller/subsystem/ticker/proc/generate_individual_objectives(var/datum/mind/crewMind)

View File

@@ -286,6 +286,10 @@ GLOBAL_PROTECT(config_dir)
var/debug_admin_hrefs = FALSE //turns off admin href token protection for debugging purposes
var/allow_crew_objectives = FALSE
var/allow_miscreants = FALSE
var/allow_extended_miscreants = FALSE
/datum/configuration/New()
gamemode_cache = typecacheof(/datum/game_mode,TRUE)
for(var/T in gamemode_cache)
@@ -816,6 +820,12 @@ GLOBAL_PROTECT(config_dir)
arrivals_shuttle_require_safe_latejoin = TRUE
if("mice_roundstart")
mice_roundstart = text2num(value)
if("allow_crew_objectives")
allow_crew_objectives = TRUE
if("allow_miscreants")
allow_miscreants = TRUE
if("allow_extended_miscreants")
allow_extended_miscreants = TRUE
else
WRITE_FILE(GLOB.config_error_log, "Unknown setting in configuration: '[name]'")
else if(type == "policies")