From f56844d54a4161dac58100d9e2cff2d1e69dadcd Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Sat, 11 Jan 2020 22:38:35 -0800 Subject: [PATCH] i forgot how bad i was at coding --- code/modules/movespeed/_movespeed_modifier.dm | 2 +- code/modules/movespeed/modifiers/mobs.dm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/movespeed/_movespeed_modifier.dm b/code/modules/movespeed/_movespeed_modifier.dm index 4aaed2502f4..03a657be7e3 100644 --- a/code/modules/movespeed/_movespeed_modifier.dm +++ b/code/modules/movespeed/_movespeed_modifier.dm @@ -178,7 +178,7 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache) ///Set or update the global movespeed config on a mob /mob/proc/update_config_movespeed() - add_movespeed_modifier(MOVESPEED_ID_CONFIG_SPEEDMOD, FALSE, 100, multiplicative_slowdown = get_config_multiplicative_speed()) + add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/mob_config_speedmod, multiplicative_slowdown = get_config_multiplicative_speed()) ///Get the global config movespeed of a mob by type /mob/proc/get_config_multiplicative_speed() diff --git a/code/modules/movespeed/modifiers/mobs.dm b/code/modules/movespeed/modifiers/mobs.dm index 50f44a96ccc..376b3ae94f0 100644 --- a/code/modules/movespeed/modifiers/mobs.dm +++ b/code/modules/movespeed/modifiers/mobs.dm @@ -122,3 +122,6 @@ /datum/movespeed_modifier/carbon_crawling id = MOVESPEED_ID_CARBON_CRAWLING multiplicative_slowdown = CRAWLING_ADD_SLOWDOWN + +/datum/movespeed_modifier/mob_config_speedmod + id = MOVESPEED_ID_CONFIG_SPEEDMOD