[MIRROR] Startup Time Optimization (#10940)

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-24 18:44:27 -07:00
committed by GitHub
parent 51d87471f7
commit 7f4da4eb22
13 changed files with 60 additions and 24 deletions

View File

@@ -2,6 +2,7 @@
iterations = 5
descriptor = "moon caves"
var/list/ore_turfs = list()
var/list/turfs_changed
var/make_cracked_turfs = TRUE
/datum/random_map/automata/cave_system/no_cracks
@@ -68,6 +69,7 @@
new /obj/structure/mob_spawner/scanner/mining_animals(T) //CHOMP Add
else
T.make_wall()
LAZYSET(turfs_changed, T, TRUE)
if(T.density && !T.ignore_oregen)
if(map[current_cell] == DOOR_CHAR)
@@ -77,3 +79,11 @@
get_additional_spawns(map[current_cell],T,get_spawn_dir(x, y))
//VOREStation Edit End
return T
/datum/random_map/automata/cave_system/apply_to_map()
. = ..()
for(var/turf/simulated/mineral/T as anything in turfs_changed)
T.update_icon(1, turfs_changed)
LAZYCLEARLIST(turfs_changed)