More Dereferencing

This commit is contained in:
Fox-McCloud
2015-10-12 02:37:52 -04:00
parent c2ffc31963
commit 81cfcd7af3
8 changed files with 56 additions and 31 deletions
@@ -1,5 +1,5 @@
/obj/item/device/sensor_device
name = "handheld crew monitor"
name = "handheld crew monitor"
desc = "A miniature machine that tracks suit sensors across the station."
icon = 'icons/obj/device.dmi'
icon_state = "scanner"
@@ -7,10 +7,15 @@
slot_flags = SLOT_BELT
origin_tech = "biotech=3;materials=3;magnets=3"
var/datum/nano_module/crew_monitor/crew_monitor
/obj/item/device/sensor_device/New()
crew_monitor = new(src)
/obj/item/device/sensor_device/Destroy()
qdel(crew_monitor)
crew_monitor = null
return ..()
/obj/item/device/sensor_device/attack_self(mob/user as mob)
ui_interact(user)
-1
View File
@@ -1,6 +1,5 @@
/obj
//var/datum/module/mod //not used
var/w_amt = 0 // waster amounts
var/origin_tech = null //Used by R&D to determine what research bonuses it grants.
var/reliability = 100 //Used by SOME devices to determine how reliable they are.
var/crit_fail = 0