Examine Code Refactor

This commit is contained in:
Dip
2020-10-06 23:36:21 -03:00
parent c433514622
commit aa7d47a23b
334 changed files with 1337 additions and 1365 deletions
@@ -36,15 +36,14 @@
var/strength = null
/obj/structure/particle_accelerator/examine(mob/user)
..()
. = ..()
switch(construction_state)
if(PA_CONSTRUCTION_UNSECURED)
to_chat(user, "Looks like it's not attached to the flooring.")
. += "Looks like it's not attached to the flooring."
if(PA_CONSTRUCTION_UNWIRED)
to_chat(user, "It is missing some cables.")
. += "It is missing some cables."
if(PA_CONSTRUCTION_PANEL_OPEN)
to_chat(user, "The panel is open.")
. += "The panel is open."
/obj/structure/particle_accelerator/Destroy()
construction_state = PA_CONSTRUCTION_UNSECURED
@@ -257,15 +257,14 @@
popup.open()
/obj/machinery/particle_accelerator/control_box/examine(mob/user)
..()
. = ..()
switch(construction_state)
if(PA_CONSTRUCTION_UNSECURED)
to_chat(user, "Looks like it's not attached to the flooring.")
. += "Looks like it's not attached to the flooring."
if(PA_CONSTRUCTION_UNWIRED)
to_chat(user, "It is missing some cables.")
. += "It is missing some cables."
if(PA_CONSTRUCTION_PANEL_OPEN)
to_chat(user, "The panel is open.")
. += "The panel is open."
/obj/machinery/particle_accelerator/control_box/attackby(obj/item/W, mob/user, params)
var/did_something = FALSE