From 28cb42f20715482b84a0e30afd11ff66afa727f1 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:07:18 +0300 Subject: [PATCH] [MIRROR] Fixes crutches crippling you and giving infinite speedboosts (#2815) (#3622) * Fixes crutches crippling you and giving infinite speedboosts (#83660) Fixes #83646 Fixes crutches setting your legs to null whenever you pick them up or drop them Fixes slowdown reduction on crutches being permanent (this was hard to notice because they instantly cripple you) :cl: fix: fixes touching a crutch permanently crippling you fix: fixes crutches giving permanent speedboosts even when dropped /:cl: * Fixes crutches crippling you and giving infinite speedboosts --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: NovaBot13 --- code/game/objects/items/weaponry.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/game/objects/items/weaponry.dm b/code/game/objects/items/weaponry.dm index 9868c1c8bc7..9c7a87efd72 100644 --- a/code/game/objects/items/weaponry.dm +++ b/code/game/objects/items/weaponry.dm @@ -521,12 +521,10 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 /obj/item/cane/proc/movement_support_add(mob/living/user) RegisterSignal(user, COMSIG_CARBON_LIMPING, PROC_REF(handle_limping)) - user.set_usable_legs() return TRUE /obj/item/cane/proc/movement_support_del(mob/living/user) UnregisterSignal(user, list(COMSIG_CARBON_LIMPING)) - user.set_usable_legs() return TRUE /obj/item/cane/proc/handle_limping(mob/living/user) @@ -565,8 +563,8 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 . = ..() if(!.) return - user.update_usable_leg_status() UnregisterSignal(user, list(COMSIG_LIVING_LIMBLESS_SLOWDOWN, COMSIG_CARBON_LIMPING)) + user.update_usable_leg_status() REMOVE_TRAIT(user, TRAIT_WADDLING, REF(src)) /obj/item/cane/crutch/proc/handle_slowdown(mob/living/user, limbless_slowdown, list/slowdown_mods)