Adds examine boxes. (#18370)

* Adds examine boxes.

* lint

* what kind of dreams did you dream?

* unlimited

* midgardsormr

* sdsd

* fixes

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-02-11 21:58:20 +00:00
committed by GitHub
co-authored by Matt Atlas
parent d57c5e7c43
commit 4423d03f2f
296 changed files with 1317 additions and 1257 deletions
+5 -5
View File
@@ -35,17 +35,17 @@
var/datum/effect_system/sparks/spark_system
/obj/machinery/power/emitter/examine(mob/user, distance, is_adjacent)
/obj/machinery/power/emitter/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
switch(state)
if(EMITTER_LOOSE)
to_chat(user, SPAN_NOTICE("\The [src] isn't attached to anything and is not ready to fire."))
. += SPAN_NOTICE("\The [src] isn't attached to anything and is not ready to fire.")
if(EMITTER_BOLTED)
to_chat(user, SPAN_NOTICE("\The [src] is bolted to the floor, but not yet ready to fire."))
. += SPAN_NOTICE("\The [src] is bolted to the floor, but not yet ready to fire.")
if(EMITTER_WELDED)
to_chat(user, SPAN_WARNING("\The [src] is bolted and welded to the floor, and ready to fire."))
. += SPAN_WARNING("\The [src] is bolted and welded to the floor, and ready to fire.")
if(is_adjacent)
to_chat(user, SPAN_NOTICE("The shot counter display reads: [shot_counter]"))
. += SPAN_NOTICE("The shot counter display reads: [shot_counter] shots.")
/obj/machinery/power/emitter/Destroy()
if(special_emitter)
@@ -83,20 +83,17 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
icon_state = "end_cap"
reference = "end_cap"
/obj/structure/particle_accelerator/examine(mob/user)
/obj/structure/particle_accelerator/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
switch(construction_state)
if(0)
desc = "[initial(desc)] Looks like it's not attached to the flooring."
. += "Looks like it's not attached to the flooring."
if(1)
desc = "[initial(desc)] It's missing some cables."
. += "It's missing some cables."
if(2)
desc = "[initial(desc)] The panel is open."
. += "The panel is open."
if(3)
desc = "[initial(desc)] It seems completely assembled."
if(powered)
desc = initial(desc)
. = ..()
return
. += "It seems completely assembled."
/obj/structure/particle_accelerator/attackby(obj/item/W, mob/user)
if(istool(W))
@@ -237,21 +234,17 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
/obj/machinery/particle_accelerator/update_icon()
return
/obj/machinery/particle_accelerator/examine(mob/user)
/obj/machinery/particle_accelerator/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
switch(construction_state)
if(0)
desc = "[initial(desc)] Looks like it's not attached to the flooring."
. += "Looks like it's not attached to the flooring."
if(1)
desc = "[initial(desc)] It's missing some cables."
. += "It's missing some cables."
if(2)
desc = "[initial(desc)] The panel is open."
. += "The panel is open."
if(3)
desc = "[initial(desc)] It seems completely assembled."
if(powered)
desc = initial(desc)
. = ..()
return
. += "It seems completely assembled."
/obj/machinery/particle_accelerator/attackby(obj/item/W, mob/user)
if(istool(W))