* not code stuff * other things * global vars, defines, helpers * onclick hud stuff, orphans, world.dm * controllers and datums * game folder * everything not client/mobs in modules * client folder * stage 1 mob stuff * simple animal things * silicons * carbon things * ayylmaos and monkeys * hyoomahn * icons n shit * sprite fixes * compile fixes * some fixes I cherrypicked. * qdel fixes * forgot brain refractors
20 lines
460 B
Plaintext
20 lines
460 B
Plaintext
/proc/create_all_lighting_objects()
|
|
for (var/zlevel = 1 to world.maxz)
|
|
create_lighting_objects_zlevel(zlevel)
|
|
|
|
/proc/create_lighting_objects_zlevel(zlevel)
|
|
ASSERT(zlevel)
|
|
var/turf/T
|
|
var/thing
|
|
for (thing in block(locate(1, 1, zlevel), locate(world.maxx, world.maxy, zlevel)))
|
|
T = thing
|
|
if (!IS_DYNAMIC_LIGHTING(T))
|
|
continue
|
|
|
|
var/area/A = T.loc
|
|
if (!IS_DYNAMIC_LIGHTING(A))
|
|
continue
|
|
|
|
new/atom/movable/lighting_object(T, TRUE)
|
|
CHECK_TICK
|