Makes rainbowtide a config option.

Defaults to enabling rainbowtide, even if the config entry is absent from the config file.
This commit is contained in:
MrStonedOne
2015-02-25 13:09:41 -08:00
parent 588c79873f
commit ea46fe464f
3 changed files with 11 additions and 2 deletions
+3
View File
@@ -148,6 +148,7 @@
var/assistant_cap = -1
var/starlight = 0
var/gray_assistants = 0
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -448,6 +449,8 @@
config.assistant_cap = text2num(value)
if("starlight")
config.starlight = 1
if("gray_assistants")
config.gray_assistants = 1
else
diary << "Unknown setting in configuration: '[name]'"
+4 -1
View File
@@ -15,7 +15,10 @@ Assistant
/datum/job/assistant/equip_items(var/mob/living/carbon/human/H)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/sneakers/black(H), slot_shoes)
H.equip_to_slot_or_del(new /obj/item/clothing/under/color/random(H), slot_w_uniform)
if (config.gray_assistants)
H.equip_to_slot_or_del(new /obj/item/clothing/under/color/grey(H), slot_w_uniform)
else
H.equip_to_slot_or_del(new /obj/item/clothing/under/color/random(H), slot_w_uniform)
/datum/job/assistant/get_access()
if((config.jobs_have_maint_access & ASSISTANTS_HAVE_MAINT_ACCESS) || !config.jobs_have_minimal_access) //Config has assistant maint access set
+4 -1
View File
@@ -221,4 +221,7 @@ SILICON_MAX_LAW_AMOUNT 12
ASSISTANT_CAP -1
## Starlight for exterior walls and breaches. Uncomment for starlight!
STARLIGHT
STARLIGHT
## Uncomment to bring back old gray suit assistants instead of the now default rainbow colored assistants.
#GRAY_ASSISTANTS