From 0fa83322a1c6b7526e7b95411dc0305a4f8db7d1 Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Mon, 26 Oct 2020 20:40:11 +0000 Subject: [PATCH] re-add slow stride but it defaults to disabled --- code/controllers/configuration/entries/game_options.dm | 4 ++-- code/datums/dna.dm | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/code/controllers/configuration/entries/game_options.dm b/code/controllers/configuration/entries/game_options.dm index 4d2caf92a9..67e4a97894 100644 --- a/code/controllers/configuration/entries/game_options.dm +++ b/code/controllers/configuration/entries/game_options.dm @@ -531,8 +531,8 @@ //multiplicative slowdown multiplier. See 'dna.update_body_size' for the operation. //doesn't apply to floating or crawling mobs /datum/config_entry/number/body_size_slowdown_multiplier - config_entry_value = 0.25 - min_val = 0.1 //To encourage folks to disable the slowdown through the above config instead. + config_entry_value = 0 + min_val = 0 integer = FALSE //Allows players to set a hexadecimal color of their choice as skin tone, on top of the standard ones. diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 3ca7f08fa7..4e9e21f70e 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -704,8 +704,11 @@ var/penalty_threshold = CONFIG_GET(number/threshold_body_size_penalty) if(features["body_size"] < penalty_threshold && old_size >= penalty_threshold) C.maxHealth -= 10 //reduce the maxhealth + var/slowdown = (1 - round(features["body_size"] / danger, 0.1)) * CONFIG_GET(number/body_size_slowdown_multiplier) + holder.add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/small_stride, TRUE, slowdown) else if(old_size < penalty_threshold && features["body_size"] >= penalty_threshold) C.maxHealth += 10 //give the maxhealth back + holder.remove_movespeed_modifier(/datum/movespeed_modifier/small_stride) //remove the slowdown