mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixes #5272
This commit is contained in:
@@ -259,14 +259,14 @@
|
||||
if (usr.stat || usr.restrained() || anchored || (usr.status_flags & FAKEDEATH))
|
||||
return
|
||||
|
||||
src.dir = turn(src.dir, 90)
|
||||
src.dir = turn(src.dir, -90)
|
||||
|
||||
/obj/machinery/power/rust_fuel_injector/verb/rotate_anticlock()
|
||||
set category = "Object"
|
||||
set name = "Rotate Generator (Counterclockwise)"
|
||||
set name = "Rotate Generator (Counter-clockwise)"
|
||||
set src in view(1)
|
||||
|
||||
if (usr.stat || usr.restrained() || anchored || (usr.status_flags & FAKEDEATH))
|
||||
return
|
||||
|
||||
src.dir = turn(src.dir, -90)
|
||||
src.dir = turn(src.dir, 90)
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/machinery/rust/gyrotron
|
||||
icon = 'code/WorkInProgress/Cael_Aislinn/Rust/rust.dmi'
|
||||
icon_state = "emitter-off"
|
||||
name = "Gyrotron"
|
||||
name = "gyrotron"
|
||||
anchored = 0
|
||||
state = 0
|
||||
density = 1
|
||||
@@ -90,3 +90,31 @@
|
||||
user << "<span class='warning'>Turn \the [src] off first!</span>"
|
||||
return -1
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/rust/gyrotron/verb/rotate_cw()
|
||||
set name = "Rotate (Clockwise)"
|
||||
set src in oview(1)
|
||||
set category = "Object"
|
||||
|
||||
if(usr.restrained() || usr.stat || usr.weakened || usr.stunned || usr.paralysis || usr.resting || !Adjacent(usr))
|
||||
return
|
||||
|
||||
if(anchored)
|
||||
usr << "<span class='notify'>\the [src] is anchored to the floor!</span>"
|
||||
return
|
||||
|
||||
dir = turn(dir, -90)
|
||||
|
||||
/obj/machinery/rust/gyrotron/verb/rotate_ccw()
|
||||
set name = "Rotate (Counter-Clockwise)"
|
||||
set src in oview(1)
|
||||
set category = "Object"
|
||||
|
||||
if(usr.restrained() || usr.stat || usr.weakened || usr.stunned || usr.paralysis || usr.resting || !Adjacent(usr))
|
||||
return
|
||||
|
||||
if(anchored)
|
||||
usr << "<span class='notify'>\the [src] is anchored to the floor!</span>"
|
||||
return
|
||||
|
||||
dir = turn(dir, 90)
|
||||
|
||||
Reference in New Issue
Block a user