mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
Merge pull request #12624 from Citadel-Station-13/policy
policy configuration & support hooks for clone memory disorder
This commit is contained in:
@@ -209,6 +209,8 @@
|
||||
new_value = new_list
|
||||
continue_check_value = new_list.len
|
||||
if(continue_check_value && continue_check_key && ValidateListEntry(new_key, new_value))
|
||||
new_key = preprocess_key(new_key)
|
||||
new_value = preprocess_value(new_value)
|
||||
config_entry_value[new_key] = new_value
|
||||
return TRUE
|
||||
return FALSE
|
||||
@@ -216,6 +218,12 @@
|
||||
/datum/config_entry/keyed_list/vv_edit_var(var_name, var_value)
|
||||
return var_name != "splitter" && ..()
|
||||
|
||||
/datum/config_entry/keyed_list/proc/preprocess_key(key)
|
||||
return key
|
||||
|
||||
/datum/config_entry/keyed_list/proc/preprocess_value(value)
|
||||
return value
|
||||
|
||||
//snowflake for donator things being on one line smh
|
||||
/datum/config_entry/multi_keyed_flag
|
||||
vv_VAS = FALSE
|
||||
|
||||
11
code/controllers/configuration/entries/policy.dm
Normal file
11
code/controllers/configuration/entries/policy.dm
Normal file
@@ -0,0 +1,11 @@
|
||||
/// Seconds for CMD on defib-with-memory-loss policy config to display instead of defib-intact config
|
||||
/datum/config_entry/number/defib_cmd_time_limit
|
||||
config_entry_value = 300
|
||||
integer = TRUE
|
||||
|
||||
/datum/config_entry/keyed_list/policyconfig
|
||||
key_mode = KEY_MODE_TEXT
|
||||
value_mode = VALUE_MODE_TEXT
|
||||
|
||||
/datum/config_entry/keyed_list/policyconfig/preprocess_key(key)
|
||||
return uppertext(..())
|
||||
Reference in New Issue
Block a user