mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user