mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Rotatable Atom Element (#18440)
* initial work * a much better way of doing this * these are needed * minimize change * nope * missing elements * whitespace * species cases * reduce pasta in ghosts * more small fixes * fixes for windows and inventory * unneeded * protected * circulator uses examine --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -449,6 +449,7 @@
|
||||
. = ..()
|
||||
default_apply_parts()
|
||||
AddElement(/datum/element/climbable)
|
||||
AddElement(/datum/element/rotatable)
|
||||
|
||||
/obj/machinery/mining/brace/RefreshParts()
|
||||
..()
|
||||
@@ -514,31 +515,3 @@
|
||||
connected.supports -= src
|
||||
connected.check_supports()
|
||||
connected = null
|
||||
|
||||
/obj/machinery/mining/brace/verb/rotate_clockwise()
|
||||
set name = "Rotate Brace Clockwise"
|
||||
set category = "Object"
|
||||
set src in oview(1)
|
||||
|
||||
if(usr.stat) return
|
||||
|
||||
if (src.anchored)
|
||||
balloon_alert(usr, "it is anchored in place!")
|
||||
return 0
|
||||
|
||||
src.set_dir(turn(src.dir, 270))
|
||||
return 1
|
||||
|
||||
/obj/machinery/mining/brace/verb/rotate_counterclockwise()
|
||||
set name = "Rotate Brace Counter-Clockwise"
|
||||
set category = "Object"
|
||||
set src in oview(1)
|
||||
|
||||
if(usr.stat) return
|
||||
|
||||
if (src.anchored)
|
||||
to_chat(usr, "It is anchored in place!")
|
||||
return 0
|
||||
|
||||
src.set_dir(turn(src.dir, 90))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user