config. > CONFIG_GET

This commit is contained in:
deathride58
2017-10-01 19:56:44 -04:00
parent 8e65f4fb23
commit 70f06cfe35
3 changed files with 8 additions and 4 deletions
@@ -256,6 +256,10 @@ CONFIG_DEF(number/bombcap)
value = 14
min_val = 4
CONFIG_DEF(flag/allow_crew_objectives)
CONFIG_DEF(flag/allow_miscreants)
CONFIG_DEF(flag/allow_extended_miscreants)
/datum/config_entry/number/bombcap/ValidateAndSet(str_val)
. = ..()
if(.)
+3 -3
View File
@@ -260,9 +260,9 @@ SUBSYSTEM_DEF(ticker)
qdel(S)
//assign crew objectives and generate miscreants
if(config.allow_extended_miscreants && GLOB.master_mode == "extended")
if(CONFIG_GET(flag/allow_extended_miscreants) && GLOB.master_mode == "extended")
GLOB.miscreants_allowed = TRUE
if(config.allow_miscreants && GLOB.master_mode != "extended")
if(CONFIG_GET(flag/allow_miscreants) && GLOB.master_mode != "extended")
GLOB.miscreants_allowed = TRUE
generate_crew_objectives()
@@ -484,7 +484,7 @@ SUBSYSTEM_DEF(ticker)
completedObjectives += "[i]<BR>"
to_chat(world, "[completedObjectives]<BR>")
else
if(config.allow_crew_objectives)
if(CONFIG_GET(flag/allow_crew_objectives))
to_chat(world, "<B>Nobody completed their Crew Objectives!</B><BR>")
CHECK_TICK