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
This commit is contained in:
phasenoisepon
2021-11-18 13:15:05 +13:00
committed by GitHub
parent 64c998efb0
commit 5f3cb3888e
@@ -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