From c3cdeb050713af22a4dce493a6cd40ad70c24af1 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Thu, 15 Oct 2020 04:53:21 -0700 Subject: [PATCH] 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> --- code/controllers/configuration/config_entry.dm | 5 ++++- code/controllers/configuration/entries/game_options.dm | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/controllers/configuration/config_entry.dm b/code/controllers/configuration/config_entry.dm index 259082a6ba..ea5c861cd4 100644 --- a/code/controllers/configuration/config_entry.dm +++ b/code/controllers/configuration/config_entry.dm @@ -27,7 +27,10 @@ /datum/config_entry/New() if(type == abstract_type) 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)) var/list/L = config_entry_value default = L.Copy() diff --git a/code/controllers/configuration/entries/game_options.dm b/code/controllers/configuration/entries/game_options.dm index c91ac2e0d4..fdf7ffd663 100644 --- a/code/controllers/configuration/entries/game_options.dm +++ b/code/controllers/configuration/entries/game_options.dm @@ -230,6 +230,7 @@ /datum/config_entry/keyed_list/multiplicative_movespeed key_mode = KEY_MODE_TYPE value_mode = VALUE_MODE_NUM + abstract_type = /datum/config_entry/keyed_list/multiplicative_movespeed /datum/config_entry/keyed_list/multiplicative_movespeed/ValidateAndSet() . = ..() @@ -242,6 +243,7 @@ update_config_movespeed_type_lookup(TRUE) /datum/config_entry/keyed_list/multiplicative_movespeed/normal + name = "multiplicative_movespeed" config_entry_value = list( //DEFAULTS /mob/living/simple_animal = 1, /mob/living/silicon/pai = 1, @@ -252,6 +254,7 @@ ) /datum/config_entry/keyed_list/multiplicative_movespeed/floating + name = "multiplicative_movespeed_floating" config_entry_value = list( /mob/living = 0, /mob/living/carbon/alien/humanoid = 0,