mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
[TM prolly] Some init optimisationss (#23800)
* [TM prolly] Some init optimisationss * Do this as well * Sod it some runtime optimisations as well
This commit is contained in:
@@ -361,6 +361,7 @@ SUBSYSTEM_DEF(air)
|
||||
for(var/obj/machinery/atmospherics/A in machines_to_init)
|
||||
A.atmos_init()
|
||||
count++
|
||||
CHECK_TICK
|
||||
return count
|
||||
|
||||
//this can't be done with setup_atmos_machinery() because
|
||||
|
||||
@@ -126,6 +126,8 @@ SUBSYSTEM_DEF(mapping)
|
||||
var/num_extra_space = rand(GLOB.configuration.ruins.extra_levels_min, GLOB.configuration.ruins.extra_levels_max)
|
||||
for(var/i in 1 to num_extra_space)
|
||||
GLOB.space_manager.add_new_zlevel("Ruin Area #[i]", linkage = CROSSLINKED, traits = list(REACHABLE_BY_CREW, SPAWN_RUINS, REACHABLE_SPACE_ONLY))
|
||||
CHECK_TICK
|
||||
|
||||
log_startup_progress("Loaded random space levels in [stop_watch(load_zlevels_timer)]s.")
|
||||
|
||||
// Now spawn ruins, random budget between 20 and 30 for all zlevels combined.
|
||||
|
||||
Reference in New Issue
Block a user