mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
@@ -1322,3 +1322,6 @@ var/mob/dview/dview_mob = new
|
|||||||
|
|
||||||
see_in_dark = 1e6
|
see_in_dark = 1e6
|
||||||
|
|
||||||
|
/mob/dview/New()
|
||||||
|
// do nothing. we don't want to be in any mob lists; we're a dummy not a mob.
|
||||||
|
|
||||||
|
|||||||
@@ -177,6 +177,7 @@
|
|||||||
|
|
||||||
T.affecting_lights += src
|
T.affecting_lights += src
|
||||||
effect_turf += T
|
effect_turf += T
|
||||||
|
END_FOR_DVIEW
|
||||||
|
|
||||||
/datum/light_source/proc/remove_lum()
|
/datum/light_source/proc/remove_lum()
|
||||||
applied = 0
|
applied = 0
|
||||||
@@ -201,11 +202,11 @@
|
|||||||
var/list/view[0]
|
var/list/view[0]
|
||||||
FOR_DVIEW(var/turf/T, light_range, source_turf, INVISIBILITY_LIGHTING)
|
FOR_DVIEW(var/turf/T, light_range, source_turf, INVISIBILITY_LIGHTING)
|
||||||
view += T //Filter out turfs.
|
view += T //Filter out turfs.
|
||||||
|
END_FOR_DVIEW
|
||||||
|
|
||||||
//This is the part where we calculate new turfs (if any)
|
//This is the part where we calculate new turfs (if any)
|
||||||
var/list/new_turfs = view - effect_turf //This will result with all the tiles that are added.
|
var/list/new_turfs = view - effect_turf //This will result with all the tiles that are added.
|
||||||
for(var/turf/T in new_turfs)
|
for(var/turf/T in new_turfs)
|
||||||
//Big huge copy paste from apply_lum() incoming because screw unreadable defines and screw proc call overhead.
|
|
||||||
if(T.lighting_overlay)
|
if(T.lighting_overlay)
|
||||||
LUM_FALLOFF(., T, source_turf)
|
LUM_FALLOFF(., T, source_turf)
|
||||||
. *= light_power
|
. *= light_power
|
||||||
|
|||||||
@@ -1002,3 +1002,4 @@ var/list/be_special_flags = list(
|
|||||||
dview_mob.loc = center; \
|
dview_mob.loc = center; \
|
||||||
dview_mob.see_invisible = invis_flags; \
|
dview_mob.see_invisible = invis_flags; \
|
||||||
for(type in view(range, dview_mob))
|
for(type in view(range, dview_mob))
|
||||||
|
#define END_FOR_DVIEW dview_mob.loc = null
|
||||||
|
|||||||
Reference in New Issue
Block a user