From c728650fa772ab48290db2ed44ff6536d82c1b93 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 18 Nov 2021 01:10:56 +0000 Subject: [PATCH] [MIRROR] implements pews needing a tool to be rotated [MDB IGNORE] (#9530) * 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 * implements pews needing a tool to be rotated Co-authored-by: phasenoisepon <82134074+phasenoisepon@users.noreply.github.com> --- 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