Revert "Revert "Add the option to restrict the Engine that spawn""

This reverts commit d851beea16.
This commit is contained in:
r4d6
2019-12-23 10:25:37 -05:00
parent d851beea16
commit b909f54ba5
4 changed files with 19 additions and 1 deletions
@@ -151,6 +151,7 @@
var/key_mode
var/value_mode
var/splitter = " "
var/lowercase = TRUE
/datum/config_entry/keyed_list/New()
. = ..()
@@ -167,7 +168,8 @@
var/key_value = null
if(key_pos || value_mode == VALUE_MODE_FLAG)
key_name = lowertext(copytext(str_val, 1, key_pos))
if(lowercase)
key_name = lowertext(copytext(str_val, 1, key_pos))
key_value = copytext(str_val, key_pos + 1)
var/new_key
var/new_value
@@ -379,3 +379,9 @@
/datum/config_entry/number/auto_transfer_delay
config_entry_value = 72000
min_val = 0
/datum/config_entry/keyed_list/box_random_engine
key_mode = KEY_MODE_TEXT
value_mode = VALUE_MODE_TEXT
lowercase = FALSE
splitter = "-"