mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-04-15 08:52:44 +01:00
* Holy fuck there's so much shit I'm not even done * oh god there's so many * it is done * Update autolathe_designs.dm * Update circuitboard.dm
28 lines
820 B
Plaintext
28 lines
820 B
Plaintext
/obj/item/sensor_device
|
|
name = "handheld crew monitor"
|
|
desc = "A miniature machine that tracks suit sensors across the station."
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "scanner"
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
slot_flags = ITEM_SLOT_BELT
|
|
origin_tech = "programming=3;materials=3;magnets=3"
|
|
materials = list(MAT_METAL = 300, MAT_GLASS = 200)
|
|
var/datum/ui_module/crew_monitor/crew_monitor
|
|
|
|
/obj/item/sensor_device/Initialize(mapload)
|
|
. = ..()
|
|
crew_monitor = new(src)
|
|
|
|
/obj/item/sensor_device/Destroy()
|
|
QDEL_NULL(crew_monitor)
|
|
return ..()
|
|
|
|
/obj/item/sensor_device/attack_self__legacy__attackchain(mob/user as mob)
|
|
ui_interact(user)
|
|
|
|
/obj/item/sensor_device/ui_state(mob/user)
|
|
return GLOB.default_state
|
|
|
|
/obj/item/sensor_device/ui_interact(mob/user, datum/tgui/ui = null)
|
|
crew_monitor.ui_interact(user, ui)
|