Files
VOREStation/code/game/machinery/computer/crew.dm
T
Will 14e23e07f0 upports syndicate pai pet from chomp and emag behaviors (#19249)
* upporting syndicate pai pet

* tgui data

* don't emag cards without a pai

* aaugghh

* allow bingle pai, pai counts for lonely

* modular computers

* fix that

* .

* emag

* that'S fine

* pai card as antag tools

* .

* trashcatch

* that

* .

* only show emag chassis if we have a toolkit too

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2026-03-05 21:53:36 +01:00

39 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"
light_color = "#315ab4"
use_power = USE_POWER_IDLE
idle_power_usage = 250
active_power_usage = 500
circuit = /obj/item/circuitboard/crew
var/datum/tgui_module/crew_monitor/crew_monitor
/obj/machinery/computer/crew/Initialize(mapload)
. = ..()
crew_monitor = new(src)
/obj/machinery/computer/crew/Destroy()
qdel(crew_monitor)
crew_monitor = null
. = ..()
/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
tgui_interact(user)
/obj/machinery/computer/crew/allow_pai_interaction(mob/living/silicon/pai/user, proximity_flag)
return proximity_flag
/obj/machinery/computer/crew/tgui_interact(mob/user, datum/tgui/ui = null)
crew_monitor.tgui_interact(user, ui)
/obj/machinery/computer/crew/interact(mob/user)
crew_monitor.tgui_interact(user)