Adds some examine helpers (#18997)

* Adds some examine helpers

* Includes suggestions

* Macroifies some "the"s

* Update code/game/machinery/camera/camera.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/game/objects/items/devices/radio/intercom.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
Shadow-Quill
2022-10-11 08:11:23 +01:00
committed by GitHub
co-authored by Contrabang Luc Charlie
parent cb513cf52e
commit 3958de2de4
9 changed files with 94 additions and 20 deletions
+8 -7
View File
@@ -49,11 +49,11 @@
if(get_dist(user, src) <= 2)
switch(stage)
if(1)
. += "It's an empty frame."
. += "<span class='notice'>It's an empty frame <b>bolted</b> to the wall. It needs to be <i>wired</i>.</span>"
if(2)
. += "It's wired."
. += "<span class='notice'>The frame is <b>wired</b>, but the casing's cover is <i>unscrewed</i>.</span>"
if(3)
. += "The casing is closed."
. += "<span class='notice'>The casing is <b>screwed</b> shut.</span>"
/obj/machinery/light_construct/wrench_act(mob/living/user, obj/item/I)
. = TRUE
@@ -418,13 +418,14 @@
if(in_range(user, src))
switch(status)
if(LIGHT_OK)
. += "It is turned [on? "on" : "off"]."
. += "<span class='notice'>It is turned [on ? "on" : "off"].</span>"
if(LIGHT_EMPTY)
. += "The [fitting] has been removed."
. += "<span class='notice'>The [fitting] has been removed.</span>"
. += "<span class='notice'>The casing can be <b>unscrewed</b>.</span>"
if(LIGHT_BURNED)
. += "The [fitting] is burnt out."
. += "<span class='notice'>The [fitting] is burnt out.</span>"
if(LIGHT_BROKEN)
. += "The [fitting] has been smashed."
. += "<span class='notice'>The [fitting] has been smashed.</span>"
// attack with item - insert light (if right type), otherwise try to break the light