[MIRROR] Tesla Component Examine Tweaks (#6904)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2023-09-03 17:49:36 +02:00
committed by GitHub
co-authored by Heroman3003 CHOMPStation2
parent 8557df23f5
commit 636e50cbd0
6 changed files with 39 additions and 10 deletions
+12 -2
View File
@@ -30,7 +30,6 @@
var/integrity = 80
/obj/machinery/power/emitter/verb/rotate_clockwise()
set name = "Rotate Emitter Clockwise"
set category = "Object"
@@ -42,6 +41,17 @@
src.set_dir(turn(src.dir, 270))
return 1
/obj/machinery/power/emitter/verb/rotate_counterclockwise()
set name = "Rotate Emitter Counter-Clockwise"
set category = "Object"
set src in oview(1)
if (src.anchored || usr:stat)
to_chat(usr, "It is fastened to the floor!")
return 0
src.set_dir(turn(src.dir, 90))
return 1
/obj/machinery/power/emitter/Initialize()
. = ..()
if(state == 2 && anchored)
@@ -274,7 +284,7 @@
. = ..()
switch(state)
if(0)
. += "<span class='warning'>It is not secured in place at all!</span>"
. += "<span class='warning'>It is not secured in place!</span>"
if(1)
. += "<span class='warning'>It has been bolted down securely, but not welded into place.</span>"
if(2)
@@ -44,7 +44,7 @@ field_generator power level display
. = ..()
switch(state)
if(0)
. += "<span class='warning'>It is not secured in place at all!</span>"
. += "<span class='warning'>It is not secured in place!</span>"
if(1)
. += "<span class='warning'>It has been bolted down securely, but not welded into place.</span>"
if(2)
+4 -1
View File
@@ -12,7 +12,10 @@
/obj/machinery/the_singularitygen/examine()
. = ..()
. += "<span class='notice'>It is [anchored ? "secured" : "not secured"]!</span>"
if(anchored)
. += "<span class='warning'>It is not secured!</span>"
else
. += "<span class='notice'>It has been securely bolted down and is ready for operation.</span>"
/obj/machinery/the_singularitygen/process()
var/turf/T = get_turf(src)