mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
committed by
GitHub
parent
51d87471f7
commit
7f4da4eb22
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user