mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 18:33:36 +00:00
config. > CONFIG_GET
This commit is contained in:
@@ -256,6 +256,10 @@ CONFIG_DEF(number/bombcap)
|
|||||||
value = 14
|
value = 14
|
||||||
min_val = 4
|
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)
|
/datum/config_entry/number/bombcap/ValidateAndSet(str_val)
|
||||||
. = ..()
|
. = ..()
|
||||||
if(.)
|
if(.)
|
||||||
|
|||||||
@@ -260,9 +260,9 @@ SUBSYSTEM_DEF(ticker)
|
|||||||
qdel(S)
|
qdel(S)
|
||||||
|
|
||||||
//assign crew objectives and generate miscreants
|
//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
|
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
|
GLOB.miscreants_allowed = TRUE
|
||||||
generate_crew_objectives()
|
generate_crew_objectives()
|
||||||
|
|
||||||
@@ -484,7 +484,7 @@ SUBSYSTEM_DEF(ticker)
|
|||||||
completedObjectives += "[i]<BR>"
|
completedObjectives += "[i]<BR>"
|
||||||
to_chat(world, "[completedObjectives]<BR>")
|
to_chat(world, "[completedObjectives]<BR>")
|
||||||
else
|
else
|
||||||
if(config.allow_crew_objectives)
|
if(CONFIG_GET(flag/allow_crew_objectives))
|
||||||
to_chat(world, "<B>Nobody completed their Crew Objectives!</B><BR>")
|
to_chat(world, "<B>Nobody completed their Crew Objectives!</B><BR>")
|
||||||
|
|
||||||
CHECK_TICK
|
CHECK_TICK
|
||||||
|
|||||||
@@ -376,7 +376,7 @@
|
|||||||
if(prob(2) && !issilicon(humanc) && !jobban_isbanned(humanc.mind, "Syndicate") && GLOB.miscreants_allowed)
|
if(prob(2) && !issilicon(humanc) && !jobban_isbanned(humanc.mind, "Syndicate") && GLOB.miscreants_allowed)
|
||||||
SSticker.generate_miscreant_objectives(humanc.mind)
|
SSticker.generate_miscreant_objectives(humanc.mind)
|
||||||
else
|
else
|
||||||
if(config.allow_crew_objectives)
|
if(CONFIG_GET(flag/allow_crew_objectives))
|
||||||
SSticker.generate_individual_objectives(humanc.mind)
|
SSticker.generate_individual_objectives(humanc.mind)
|
||||||
|
|
||||||
GLOB.joined_player_list += character.ckey
|
GLOB.joined_player_list += character.ckey
|
||||||
|
|||||||
Reference in New Issue
Block a user