mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Uses the proper list for xeno landmarks/nightmare spawning (#31470)
This commit is contained in:
committed by
CitadelStationBot
parent
6f2b89ae88
commit
e7800a2235
@@ -19,12 +19,11 @@
|
|||||||
player_mind.active = TRUE
|
player_mind.active = TRUE
|
||||||
|
|
||||||
var/list/spawn_locs = list()
|
var/list/spawn_locs = list()
|
||||||
for(var/obj/effect/landmark/xeno_spawn/L in GLOB.landmarks_list)
|
for(var/X in GLOB.xeno_spawn)
|
||||||
if(isturf(L.loc))
|
var/turf/T = X
|
||||||
var/turf/T = L.loc
|
var/light_amount = T.get_lumcount()
|
||||||
var/light_amount = T.get_lumcount()
|
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
|
||||||
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
|
spawn_locs += T
|
||||||
spawn_locs += T
|
|
||||||
|
|
||||||
if(!spawn_locs.len)
|
if(!spawn_locs.len)
|
||||||
message_admins("No valid spawn locations found, aborting...")
|
message_admins("No valid spawn locations found, aborting...")
|
||||||
|
|||||||
Reference in New Issue
Block a user