[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>
This commit is contained in:
SkyratBot
2021-11-17 20:10:56 -05:00
committed by GitHub
co-authored by phasenoisepon
parent 2ad7552457
commit c728650fa7
@@ -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