From 0e5029b2420d974c08ff3751c96db272c3a58982 Mon Sep 17 00:00:00 2001 From: forest2001 <41653574+realforest2001@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:34:49 +0100 Subject: [PATCH] Invisible Wall collide tweak (#4247) # About the pull request Changes where the message comes from when collidin with an invisible wall as it was hardcoded but using the same text as description var # Explain why it's good for the game # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: code: Changed backend for the message of walking into an invisible wall to reduce duplication. /:cl: --- code/game/objects/structures/blocker.dm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/code/game/objects/structures/blocker.dm b/code/game/objects/structures/blocker.dm index aadf6d2a099e..a9e7371d7055 100644 --- a/code/game/objects/structures/blocker.dm +++ b/code/game/objects/structures/blocker.dm @@ -25,7 +25,10 @@ mouse_opacity = MOUSE_OPACITY_TRANSPARENT /obj/structure/blocker/invisible_wall/Collided(atom/movable/AM) - to_chat(AM, SPAN_WARNING("You cannot go this way.")) + var/msg = desc + if(!msg) + msg = "You cannot go this way." + to_chat(AM, SPAN_WARNING(msg)) /obj/structure/blocker/invisible_wall/New() ..() @@ -35,10 +38,6 @@ desc = "You cannot wade out any further" icon_state = "map_blocker" -/obj/structure/blocker/invisible_wall/water/Collided(atom/movable/AM) - to_chat(AM, SPAN_WARNING("You cannot wade out any further.")) - - /obj/structure/blocker/fog name = "dense fog" desc = "It looks way too dangerous to traverse. Best wait until it has cleared up."