From b2fa7cc478465ded21b302d64f1367c2866abfdc Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:56:08 +0100 Subject: [PATCH] Makes falsewalls leanable (#89680) ## About The Pull Request Closes #89676 Also fixed an evil and bad runtime that prevented leaners from falling when the atom is destroyed/moved ## Changelog :cl: fix: You can now lean on falsewalls /:cl: --- code/datums/components/leanable.dm | 2 +- code/game/objects/structures/false_walls.dm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/datums/components/leanable.dm b/code/datums/components/leanable.dm index f4a2c04c3ce..2f11bacc8eb 100644 --- a/code/datums/components/leanable.dm +++ b/code/datums/components/leanable.dm @@ -40,7 +40,7 @@ if(fall) to_chat(leaner, span_danger("You lose balance!")) leaner.Paralyze(0.5 SECONDS) - leaning_mobs = null + leaning_mobs.Cut() /datum/component/leanable/proc/on_moved(datum/source) SIGNAL_HANDLER diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm index 5c2f1972c33..22c18a15212 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -147,6 +147,10 @@ to_chat(user, span_notice("The outer plating is welded firmly in place.")) return null +/obj/structure/falsewall/mouse_drop_receive(mob/living/dropping, mob/user, params) + . = ..() + LoadComponent(/datum/component/leanable, dropping) + /* * False R-Walls */