mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user