mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-11 18:11:35 +00:00
* Switch a bunch of /obj/machinery from /New to /Initialize This is an easy and uncontroversial batch. No globs, no late init, and stuff. * Move more machinery to Initialize This time the ones dealing with GLOB vars, as well as some simpler ones i missed previously. * More tricky New -> Initialize migrations * The last of machinery Initialize conversion * fixups * Newscaster armor fix * styling * Comment on armor handling * Move newscaster armor definition back to datum * farie82 review * kill extra .= Co-authored-by: Farie82 <farie82@users.noreply.github.com> * farie's review part 2 Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: Farie82 <farie82@users.noreply.github.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 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"
|
|
use_power = IDLE_POWER_USE
|
|
idle_power_usage = 250
|
|
active_power_usage = 500
|
|
light_color = LIGHT_COLOR_DARKBLUE
|
|
circuit = /obj/item/circuitboard/crew
|
|
var/datum/ui_module/crew_monitor/crew_monitor
|
|
|
|
/obj/machinery/computer/crew/Initialize()
|
|
. = ..()
|
|
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_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
|
|
crew_monitor.ui_interact(user, ui_key, ui, force_open)
|
|
|
|
/obj/machinery/computer/crew/interact(mob/user)
|
|
crew_monitor.ui_interact(user)
|