From e805ae4d881fb8daf215cdaf048f04a6c3f1cfdf Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Sun, 4 Jun 2017 12:54:56 -0400 Subject: [PATCH] no secborg yes peacekeeper --- code/controllers/configuration.dm | 8 ++++++++ code/modules/mob/living/silicon/robot/robot.dm | 6 +++++- config/example/config.txt | 8 ++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index 2ab267ce5a8..53f9de69dae 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -50,6 +50,8 @@ var/humans_need_surnames = 0 var/allow_random_events = 0 // enables random events mid-round when set to 1 var/allow_ai = 1 // allow ai job + var/forbid_secborg = 0 // disallow secborg module to be chosen. + var/forbid_peaceborg = 0 // disallow peacekeeper module to be chosen. var/hostedby = null var/respawn = 0 var/guest_jobban = 1 @@ -339,6 +341,12 @@ if("allow_ai") config.allow_ai = 1 + if("disable_secborg") + forbid_secborg = 1 + + if("disable_peaceborg") + forbid_peaceborg = 1 + // if("authentication") // config.enable_authentication = 1 diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 1cd8c8493e5..6a46e9253d3 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -262,7 +262,11 @@ var/list/robot_verbs_default = list( /mob/living/silicon/robot/proc/pick_module() if(module) return - var/list/modules = list("Standard", "Engineering", "Medical", "Miner", "Janitor", "Service", "Security", "Peacekeeper") + var/list/modules = list("Standard", "Engineering", "Medical", "Miner", "Janitor", "Service") + if(!config.forbid_secborg) + modules += "Security" + if(!config.forbid_peaceborg) + modules += "Peacekeeper" if(security_level == (SEC_LEVEL_GAMMA || SEC_LEVEL_EPSILON) || crisis) to_chat(src, "Crisis mode active. Combat module available.") modules += "Combat" diff --git a/config/example/config.txt b/config/example/config.txt index 5617b5ad039..88fe444a9c1 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -137,6 +137,14 @@ DEFAULT_NO_VOTE ## allow AI job ALLOW_AI +## Secborg ### +## Uncomment to prevent the security cyborg module from being chosen +DISABLE_SECBORG + +## Peacekeeper Borg ### +## Uncomment to prevent the peacekeeper cyborg module from being chosen +#DISABLE_PEACEBORG + ## Allow ghosts to see antagonist through AntagHUD ALLOW_ANTAG_HUD