This commit is contained in:
Ghommie
2019-11-19 18:00:56 +01:00
parent a52e292cc8
commit dd101ef221
113 changed files with 519 additions and 552 deletions
+13 -14
View File
@@ -66,22 +66,21 @@
return cell
/obj/structure/light_construct/examine(mob/user)
..()
. = ..()
switch(src.stage)
if(1)
to_chat(user, "It's an empty frame.")
. += "It's an empty frame."
if(2)
to_chat(user, "It's wired.")
. += "It's wired."
if(3)
to_chat(user, "The casing is closed.")
. += "The casing is closed."
if(cell_connectors)
if(cell)
to_chat(user, "You see [cell] inside the casing.")
. += "You see [cell] inside the casing."
else
to_chat(user, "The casing has no power cell for backup power.")
. += "The casing has no power cell for backup power."
else
to_chat(user, "<span class='danger'>This casing doesn't support power cells for backup power.</span>")
return
. += "<span class='danger'>This casing doesn't support power cells for backup power.</span>"
/obj/structure/light_construct/attackby(obj/item/W, mob/user, params)
add_fingerprint(user)
@@ -393,18 +392,18 @@
// examine verb
/obj/machinery/light/examine(mob/user)
..()
. = ..()
switch(status)
if(LIGHT_OK)
to_chat(user, "It is turned [on? "on" : "off"].")
. += "It is turned [on? "on" : "off"]."
if(LIGHT_EMPTY)
to_chat(user, "The [fitting] has been removed.")
. += "The [fitting] has been removed."
if(LIGHT_BURNED)
to_chat(user, "The [fitting] is burnt out.")
. += "The [fitting] is burnt out."
if(LIGHT_BROKEN)
to_chat(user, "The [fitting] has been smashed.")
. += "The [fitting] has been smashed."
if(cell)
to_chat(user, "Its backup power charge meter reads [round((cell.charge / cell.maxcharge) * 100, 0.1)]%.")
. += "Its backup power charge meter reads [round((cell.charge / cell.maxcharge) * 100, 0.1)]%."