From 2cb91604a582b30442b64fdfde8441082e4f201a Mon Sep 17 00:00:00 2001 From: carlarctg <53100513+carlarctg@users.noreply.github.com> Date: Thu, 27 Jun 2024 01:28:25 -0300 Subject: [PATCH] Fixed limb slowdown and hunger affecting your speed in nograv (#84253) ## About The Pull Request Limbs with unique slowdown, such as that of mushies and zombies, won't affect it when they aren't actually using them. Hunger will now only slow you down in ground movement. ## Why It's Good For The Game Being hungry isn't meant to make you move slower while using a jetpack - that makes no sense. Similarly, mush or zombie or any limbs slow the zombie down despite not being used in nograv, which I think is silly. ## Changelog Limbslow not mentioned as its not very relevant to the average round :cl: fix: Fixed hunger affecting your speed in nograv /:cl: --- code/modules/movespeed/modifiers/innate.dm | 5 +++-- code/modules/movespeed/modifiers/mobs.dm | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/movespeed/modifiers/innate.dm b/code/modules/movespeed/modifiers/innate.dm index 94a3f7a2e79..83d8b3fb78d 100644 --- a/code/modules/movespeed/modifiers/innate.dm +++ b/code/modules/movespeed/modifiers/innate.dm @@ -7,11 +7,12 @@ flags = IGNORE_NOSLOW /datum/movespeed_modifier/snail - movetypes = ~FLYING + blacklisted_movetypes = FLYING variable = TRUE +// no reason for leg loss (or gain) to affect speed if drifting /datum/movespeed_modifier/bodypart - movetypes = ~FLYING + blacklisted_movetypes = (FLYING|FLOATING) variable = TRUE /datum/movespeed_modifier/dna_vault_speedup diff --git a/code/modules/movespeed/modifiers/mobs.dm b/code/modules/movespeed/modifiers/mobs.dm index b72c631253b..1624ce37bf6 100644 --- a/code/modules/movespeed/modifiers/mobs.dm +++ b/code/modules/movespeed/modifiers/mobs.dm @@ -1,4 +1,5 @@ /datum/movespeed_modifier/obesity + // large weight slows even if flying and floating multiplicative_slowdown = 1.5 /datum/movespeed_modifier/monkey_reagent_speedmod @@ -11,6 +12,7 @@ variable = TRUE /datum/movespeed_modifier/hunger + movetypes = GROUND|FLYING variable = TRUE /datum/movespeed_modifier/golem_hunger @@ -89,7 +91,7 @@ /datum/movespeed_modifier/limbless variable = TRUE movetypes = GROUND - blacklisted_movetypes = FLOATING + blacklisted_movetypes = FLOATING|FLYING flags = IGNORE_NOSLOW /datum/movespeed_modifier/simplemob_varspeed