mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Fixes an inverted if check on false wall attackby code. (#73459)
## About The Pull Request #64428 made it so using a non-tool on a false wall that was closed would return the "You must wait until the door has stopped moving" message, this was caused by a flipped if statement so I've re-flipped it by changing it to an early return instead. ## Why It's Good For The Game Bug fix! ## Changelog 🆑 fix: False walls will no longer tell you to wait until they've stopped moving when you use an item on them. /🆑 Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
@@ -113,9 +113,9 @@
|
||||
|
||||
/obj/structure/falsewall/attackby(obj/item/W, mob/user, params)
|
||||
if(!opening)
|
||||
to_chat(user, span_warning("You must wait until the door has stopped moving!"))
|
||||
return
|
||||
return ..()
|
||||
return ..()
|
||||
to_chat(user, span_warning("You must wait until the door has stopped moving!"))
|
||||
return
|
||||
|
||||
/obj/structure/falsewall/proc/dismantle(mob/user, disassembled=TRUE, obj/item/tool = null)
|
||||
user.visible_message(span_notice("[user] dismantles the false wall."), span_notice("You dismantle the false wall."))
|
||||
|
||||
Reference in New Issue
Block a user