mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user