This commit is contained in:
PJB3005
2015-07-07 13:25:07 +02:00
parent 7faad879f6
commit 365ddd0239
3 changed files with 33 additions and 6 deletions

View File

@@ -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)

View File

@@ -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)