Files
Paradise/code/game/objects/items/devices/sensor_device.dm
CRUNCH da1ebd039d Adds Materials to Every Autolathe and Protolathe Item (except for ammo boxes, IK mags, and Dart Boxes) (#31445)
* 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
2026-01-30 21:25:40 +00:00

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)