mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
In preparation of pixel movement, I want to refactor our slowdown system to something more modular, and something that doesn't require /quite/ as many proccalls/calculations a tick. The way this works is intended to only have things recalculate when it's necessary, rather than calling it every move. However, I've left movement_delay() in, as without completely redoing a lot of code it's not /quite/ ready at this point to tear it out completely, but I'm hoping everything can be transitioned over to this system later.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
/datum/config_entry/string/comms_key
|
|
protection = CONFIG_ENTRY_HIDDEN
|
|
|
|
/datum/config_entry/string/comms_key/ValidateAndSet(str_val)
|
|
return str_val != "default_pwd" && length(str_val) > 6 && ..()
|
|
|
|
/datum/config_entry/keyed_list/cross_server
|
|
key_mode = KEY_MODE_TEXT
|
|
value_mode = VALUE_MODE_TEXT
|
|
protection = CONFIG_ENTRY_LOCKED
|
|
|
|
/datum/config_entry/keyed_list/cross_server/ValidateAndSet(str_val)
|
|
. = ..()
|
|
if(.)
|
|
var/list/newv = list()
|
|
for(var/I in config_entry_value)
|
|
newv[replacetext(I, "+", " ")] = config_entry_value[I]
|
|
config_entry_value = newv
|
|
|
|
/datum/config_entry/keyed_list/cross_server/ValidateListEntry(key_name, key_value)
|
|
return key_value != "byond:\\address:port" && ..()
|
|
|
|
/datum/config_entry/string/cross_comms_name
|
|
|
|
/datum/config_entry/string/medal_hub_address
|
|
|
|
/datum/config_entry/string/medal_hub_password
|
|
protection = CONFIG_ENTRY_HIDDEN
|
|
|
|
/datum/config_entry/string/webhook_address
|
|
protection = CONFIG_ENTRY_HIDDEN
|
|
|
|
/datum/config_entry/string/webhook_key
|
|
protection = CONFIG_ENTRY_HIDDEN |