mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-04 21:30:14 +00:00
45 lines
1.1 KiB
Plaintext
45 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_state = "crew"
|
|
light_color = "#315ab4"
|
|
use_power = 1
|
|
idle_power_usage = 250
|
|
active_power_usage = 500
|
|
circuit = "/obj/item/weapon/circuitboard/crew"
|
|
var/obj/nano_module/crew_monitor/crew_monitor
|
|
|
|
/obj/machinery/computer/crew/New()
|
|
crew_monitor = new(src)
|
|
..()
|
|
|
|
|
|
/obj/machinery/computer/crew/attack_ai(mob/user)
|
|
attack_hand(user)
|
|
ui_interact(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", var/datum/nanoui/ui = null, var/force_open = 1)
|
|
crew_monitor.ui_interact(user, ui_key, ui, force_open)
|
|
|
|
/obj/machinery/computer/crew/update_icon()
|
|
|
|
if(stat & BROKEN)
|
|
icon_state = "crewb"
|
|
else
|
|
if(stat & NOPOWER)
|
|
src.icon_state = "c_unpowered"
|
|
stat |= NOPOWER
|
|
else
|
|
icon_state = initial(icon_state)
|
|
stat &= ~NOPOWER
|
|
|
|
/obj/machinery/computer/crew/interact(mob/user)
|
|
crew_monitor.ui_interact(user)
|