From 5f3cb3888e564d02eeda48d80b49d12f58b02db2 Mon Sep 17 00:00:00 2001 From: phasenoisepon <82134074+phasenoisepon@users.noreply.github.com> Date: Wed, 17 Nov 2021 18:15:05 -0600 Subject: [PATCH] implements pews needing a tool to be rotated (#62373) About The Pull Request PR'ed for Hacktoberfest (so if this passes muster I'd appreciate it being tagged with hacktoberfest-accepted) Pews now require a wrench in hand to be rotated closes Can rotate pews #50136 image Why It's Good For The Game This prevents people from easily messing up the chapel and publicly placed pews Changelog cl add: Wooden pews now require a wrench in hand to be rotated /cl --- code/game/objects/structures/beds_chairs/pew.dm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/game/objects/structures/beds_chairs/pew.dm b/code/game/objects/structures/beds_chairs/pew.dm index 17dcb21f34d..4caa07648d0 100644 --- a/code/game/objects/structures/beds_chairs/pew.dm +++ b/code/game/objects/structures/beds_chairs/pew.dm @@ -70,3 +70,16 @@ /obj/structure/chair/pew/right/post_unbuckle_mob() . = ..() update_rightpewarmrest() + +/obj/structure/chair/pew/can_user_rotate(mob/user) + . = ..() + if(!.) + return + + var/mob/living/living_user = user + if(!istype(living_user)) + return + var/obj/item/tool = living_user.get_active_held_item() + if(!tool || tool.tool_behaviour != TOOL_WRENCH) + balloon_alert(user, "you need a wrench!") + return FALSE