Merge pull request #14837 from KillianKirilenko/kk-teslafriend

Friendlier Tesla Components
This commit is contained in:
Heroman3003
2023-05-06 08:03:24 +00:00
committed by CHOMPStation2
parent 63237ad571
commit a43114579e
5 changed files with 33 additions and 1 deletions
+8 -1
View File
@@ -272,6 +272,13 @@
/obj/machinery/power/emitter/examine(mob/user)
. = ..()
switch(state)
if(0)
. += "<span class='warning'>It is not secured in place at all!</span>"
if(1)
. += "<span class='warning'>It has been bolted down securely, but not welded into place.</span>"
if(2)
. += "<span class='notice'>It has been bolted down securely and welded down into place.</span>"
var/integrity_percentage = round((integrity / initial(integrity)) * 100)
switch(integrity_percentage)
if(0 to 30)
@@ -279,7 +286,7 @@
if(31 to 70)
. += "<span class='danger'>It is damaged.</span>"
if(77 to 99)
. += "<span class='warning'It is slightly damaged.</span>"
. += "<span class='warning'>It is slightly damaged.</span>"
//R-UST port
/obj/machinery/power/emitter/proc/get_initial_fire_delay()
@@ -40,6 +40,15 @@ field_generator power level display
var/light_power_on = 1
light_color = "#5BA8FF"
/obj/machinery/field_generator/examine()
. = ..()
switch(state)
if(0)
. += "<span class='warning'>It is not secured in place at all!</span>"
if(1)
. += "<span class='warning'>It has been bolted down securely, but not welded into place.</span>"
if(2)
. += "<span class='notice'>It has been bolted down securely and welded down into place.</span>"
/obj/machinery/field_generator/update_icon()
cut_overlays()
@@ -10,6 +10,10 @@
var/energy = 0
var/creation_type = /obj/singularity
/obj/machinery/the_singularitygen/examine()
. = ..()
. += "<span class='notice'>It is [anchored ? "secured" : "not secured"]!</span>"
/obj/machinery/the_singularitygen/process()
var/turf/T = get_turf(src)
if(src.energy >= 200)