Files
warriorstar-orion 9465b565b8 refactor/ci: enforce mapload in Initialize args (#26878)
* refactor/ci: enforce mapload in Initialize args

* add new missing mapload arg

* add yet another missing mapload arg

* Update code/modules/power/engines/singularity/particle_accelerator/particle.dm

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
2024-10-23 19:07:46 +00:00

45 lines
1.3 KiB
Plaintext

/obj/machinery/computer/crew
name = "crew monitoring computer"
desc = "Used to monitor active health sensors built into most of the crew's uniforms."
icon_keyboard = "med_key"
icon_screen = "crew"
idle_power_consumption = 250
active_power_consumption = 500
light_color = LIGHT_COLOR_DARKBLUE
circuit = /obj/item/circuitboard/crew
var/datum/ui_module/crew_monitor/crew_monitor
/obj/machinery/computer/crew/Initialize(mapload)
. = ..()
crew_monitor = new(src)
/obj/machinery/computer/crew/Destroy()
QDEL_NULL(crew_monitor)
return ..()
/obj/machinery/computer/crew/attack_ai(mob/user)
attack_hand(user)
/obj/machinery/computer/crew/attack_hand(mob/user)
add_fingerprint(user)
if(stat & (BROKEN|NOPOWER))
return
ui_interact(user)
/obj/machinery/computer/crew/ui_state(mob/user)
return GLOB.default_state
/obj/machinery/computer/crew/ui_interact(mob/user, datum/tgui/ui = null)
crew_monitor.ui_interact(user, ui)
/obj/machinery/computer/crew/interact(mob/user)
crew_monitor.ui_interact(user)
/obj/machinery/computer/crew/advanced
name = "advanced crew monitoring computer"
desc = "Used to monitor active health sensors built into most of the crew's uniforms across multiple sectors."
/obj/machinery/computer/crew/advanced/Initialize(mapload)
. = ..()
crew_monitor.is_advanced = TRUE