mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-11 07:02:20 +01:00
21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
/obj/effects/lumen_light
|
|
name = ""
|
|
desc = ""
|
|
density = 0
|
|
anchored = 1
|
|
mouse_opacity = 0
|
|
var/datum/light/light
|
|
var/create_time = 0 //for process loop
|
|
var/life_length = 0 //assigned a random value
|
|
|
|
New()
|
|
light = new /datum/light/point
|
|
light.attach(src)
|
|
create_time = world.time
|
|
life_length = rand(3000, 6000) //random time from 5 to 10 minutes
|
|
processing_items += src
|
|
|
|
proc/process()
|
|
if (world.time >= create_time + life_length)
|
|
qdel(src)
|