mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
[MIRROR] Closets now initialize their contents on demand (more than 1.6 seconds of init time saved) [MDB IGNORE] (#16037)
* Closets now initialize their contents on demand (more than 1.6 seconds of init time saved) * conflicts Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
@@ -110,7 +110,6 @@ SUBSYSTEM_DEF(mapping)
|
||||
setup_map_transitions()
|
||||
generate_station_area_list()
|
||||
initialize_reserved_level(transit.z_value)
|
||||
SSticker.OnRoundstart(CALLBACK(src, .proc/spawn_maintenance_loot))
|
||||
generate_z_level_linkages()
|
||||
calculate_default_z_level_gravities()
|
||||
|
||||
@@ -666,10 +665,3 @@ GLOBAL_LIST_EMPTY(the_station_areas)
|
||||
isolated_ruins_z = add_new_zlevel("Isolated Ruins/Reserved", list(ZTRAIT_RESERVED = TRUE, ZTRAIT_ISOLATED_RUINS = TRUE))
|
||||
initialize_reserved_level(isolated_ruins_z.z_value)
|
||||
return isolated_ruins_z.z_value
|
||||
|
||||
/datum/controller/subsystem/mapping/proc/spawn_maintenance_loot()
|
||||
for(var/obj/effect/spawner/random/maintenance/spawner as anything in GLOB.maintenance_loot_spawners)
|
||||
CHECK_TICK
|
||||
|
||||
spawner.spawn_loot()
|
||||
qdel(spawner)
|
||||
|
||||
Reference in New Issue
Block a user