Minor refactor of spawners, fixed rogue drone and carp events not spawning mobs (#17849)

* lessens the use of GLOB.landmarks_list

* delete redundant blob icon

* Apply suggestions from code review

Co-authored-by: moxian <moxian@users.noreply.github.com>

* review part 2

* aa review

Co-authored-by: moxian <moxian@users.noreply.github.com>
This commit is contained in:
S34N
2022-05-24 14:26:36 +01:00
committed by GitHub
parent 27f72f078d
commit 83e228cbcb
17 changed files with 130 additions and 192 deletions
+4 -6
View File
@@ -237,12 +237,10 @@ SUBSYSTEM_DEF(ticker)
Master.SetRunLevel(RUNLEVEL_GAME)
// Generate the list of empty playable AI cores in the world
for(var/obj/effect/landmark/start/S in GLOB.landmarks_list)
if(S.name != "AI")
for(var/obj/effect/landmark/start/ai/A in GLOB.landmarks_list)
if(locate(/mob/living) in get_turf(A))
continue
if(locate(/mob/living) in S.loc)
continue
GLOB.empty_playable_ai_cores += new /obj/structure/AIcore/deactivated(get_turf(S))
GLOB.empty_playable_ai_cores += new /obj/structure/AIcore/deactivated(get_turf(A))
// Setup pregenerated newsfeeds
@@ -259,7 +257,7 @@ SUBSYSTEM_DEF(ticker)
// Delete starting landmarks (not AI ones because we need those for AI-ize)
for(var/obj/effect/landmark/start/S in GLOB.landmarks_list)
if(S.name != "AI")
if(!istype(S, /obj/effect/landmark/start/ai))
qdel(S)
SSdbcore.SetRoundStart()