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 02:11:23 -05:00
committed by GitHub
parent cb513cf52e
commit 3958de2de4
9 changed files with 94 additions and 20 deletions
@@ -122,18 +122,20 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 1
/obj/structure/particle_accelerator/examine(mob/user)
. = ..()
switch(construction_state)
if(0)
desc = text("A [name], looks like it's not attached to the flooring")
if(1)
desc = text("A [name], it is missing some cables")
if(2)
desc = text("A [name], the panel is open")
if(3)
desc = text("The [name] is assembled")
if(ACCELERATOR_UNWRENCHED)
. += "<span class='notice'>\The [name]'s <i>anchoring bolts</i> are loose.</span>"
if(ACCELERATOR_WRENCHED)
. += "<span class='notice'>\The [name]'s anchoring bolts are <b>wrenched</b> in place, but it lacks <i>wiring</i>.</span>"
if(ACCELERATOR_WIRED)
. += "<span class='notice'>\The [name] is <b>wired</b>, but the maintenance panel is <i>unscrewed and open</i>.</span>"
if(ACCELERATOR_READY)
. += "<span class='notice'>\The [name] is assembled and the maintenence panel is <b>screwed shut</b>.</span>"
if(powered)
desc = desc_holder
. = ..()
if(!anchored)
. += "<span class='notice'>Alt-click to rotate it.</span>"
/obj/structure/particle_accelerator/deconstruct(disassembled = TRUE)
if(!(flags & NODECONSTRUCT))