mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 21:38:47 +01:00
3f62424312
This has zero reason to exist in our code base. We have no procs or variables tied to this. I removed it to make future modifications cleaner. --------- Signed-off-by: Cody Brittain <1779662+Generalcamo@users.noreply.github.com>
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
// Light meter, intended for debugging.
|
|
|
|
/obj/item/light_meter
|
|
name = "light meter"
|
|
desc = "A simple device that measures ambient light levels."
|
|
icon = 'icons/obj/item/gps.dmi'
|
|
icon_state = "gps"
|
|
item_state = "radio"
|
|
// Copied from debugger.dm
|
|
obj_flags = OBJ_FLAG_CONDUCTABLE
|
|
force = 11
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
throwforce = 5.0
|
|
throw_range = 15
|
|
throw_speed = 3
|
|
matter = list(MATERIAL_ALUMINIUM = 50, MATERIAL_GLASS = 20)
|
|
var/low = 0
|
|
var/high = 1
|
|
|
|
/obj/item/light_meter/attack_self(mob/user as mob)
|
|
var/turf/T = get_turf(user.loc)
|
|
if (!T)
|
|
to_chat(user, SPAN_ALERT("Unable to read light levels."))
|
|
return
|
|
|
|
var/visible_reading = T.get_lumcount(low, high)
|
|
|
|
var/reading = "Light analysis for <b>\the [T]</b>.<br>"
|
|
reading += "Visible light: <b>[visible_reading]</b> lx<br>"
|
|
|
|
to_chat(usr, SPAN_NOTICE(reading))
|
|
|
|
/obj/item/light_meter/verb/set_low_bound()
|
|
set category = "Object.Held"
|
|
set name = "Set Detector Low-Bound"
|
|
set src in usr
|
|
|
|
var/num = input(usr, "Please enter the low-bound for the detector") as num|null
|
|
if (num == null)
|
|
return
|
|
|
|
low = num
|
|
|
|
/obj/item/light_meter/verb/set_high_bound()
|
|
set category = "Object.Held"
|
|
set name = "Set Detector High-Bound"
|
|
set src in usr
|
|
|
|
var/num = input(usr, "Please enter the high-bound for the detector") as num|null
|
|
if (num == null)
|
|
return
|
|
|
|
high = num
|