mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
fixes movespeed configurations (#13555)
* Update config_entry.dm * Update game_options.dm * Update config_entry.dm * Update code/controllers/configuration/config_entry.dm Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,10 @@
|
|||||||
/datum/config_entry/New()
|
/datum/config_entry/New()
|
||||||
if(type == abstract_type)
|
if(type == abstract_type)
|
||||||
CRASH("Abstract config entry [type] instatiated!")
|
CRASH("Abstract config entry [type] instatiated!")
|
||||||
name = lowertext(type2top(type))
|
if(!name)
|
||||||
|
name = lowertext(type2top(type))
|
||||||
|
else
|
||||||
|
name = lowertext(name)
|
||||||
if(islist(config_entry_value))
|
if(islist(config_entry_value))
|
||||||
var/list/L = config_entry_value
|
var/list/L = config_entry_value
|
||||||
default = L.Copy()
|
default = L.Copy()
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
/datum/config_entry/keyed_list/multiplicative_movespeed
|
/datum/config_entry/keyed_list/multiplicative_movespeed
|
||||||
key_mode = KEY_MODE_TYPE
|
key_mode = KEY_MODE_TYPE
|
||||||
value_mode = VALUE_MODE_NUM
|
value_mode = VALUE_MODE_NUM
|
||||||
|
abstract_type = /datum/config_entry/keyed_list/multiplicative_movespeed
|
||||||
|
|
||||||
/datum/config_entry/keyed_list/multiplicative_movespeed/ValidateAndSet()
|
/datum/config_entry/keyed_list/multiplicative_movespeed/ValidateAndSet()
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -242,6 +243,7 @@
|
|||||||
update_config_movespeed_type_lookup(TRUE)
|
update_config_movespeed_type_lookup(TRUE)
|
||||||
|
|
||||||
/datum/config_entry/keyed_list/multiplicative_movespeed/normal
|
/datum/config_entry/keyed_list/multiplicative_movespeed/normal
|
||||||
|
name = "multiplicative_movespeed"
|
||||||
config_entry_value = list( //DEFAULTS
|
config_entry_value = list( //DEFAULTS
|
||||||
/mob/living/simple_animal = 1,
|
/mob/living/simple_animal = 1,
|
||||||
/mob/living/silicon/pai = 1,
|
/mob/living/silicon/pai = 1,
|
||||||
@@ -252,6 +254,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
/datum/config_entry/keyed_list/multiplicative_movespeed/floating
|
/datum/config_entry/keyed_list/multiplicative_movespeed/floating
|
||||||
|
name = "multiplicative_movespeed_floating"
|
||||||
config_entry_value = list(
|
config_entry_value = list(
|
||||||
/mob/living = 0,
|
/mob/living = 0,
|
||||||
/mob/living/carbon/alien/humanoid = 0,
|
/mob/living/carbon/alien/humanoid = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user