[MIRROR] Rotatable Atom Element (#11639)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-14 02:20:00 -07:00
committed by GitHub
parent 60c314ec40
commit d5605935a4
31 changed files with 196 additions and 762 deletions

View File

@@ -15,6 +15,7 @@
/obj/structure/closet/crate/Initialize(mapload)
. = ..()
AddElement(/datum/element/climbable)
AddElement(/datum/element/rotatable)
/obj/structure/closet/crate/can_open()
return 1
@@ -71,26 +72,6 @@
update_icon()
return 1
/obj/structure/closet/crate/verb/rotate_clockwise()
set name = "Rotate Crate Clockwise"
set category = "Object"
set src in oview(1)
if (usr.stat || usr.restrained() || anchored)
return
src.set_dir(turn(src.dir, 270))
/obj/structure/closet/crate/verb/rotate_counterclockwise()
set category = "Object"
set name = "Rotate Crate Counterclockwise"
set src in view(1)
if (usr.stat || usr.restrained() || anchored)
return
src.set_dir(turn(src.dir, 90))
/obj/structure/closet/crate/attackby(obj/item/W as obj, mob/user as mob)
if(W.has_tool_quality(TOOL_WRENCH) && istype(src,/obj/structure/closet/crate/bin))
return ..()