Files
Aurora.3/code/controllers/subsystems/initialization/asteroid.dm
Lohikar f7d150d7a6 Minor startup performance improvements (#2177)
changes:

Reduced Asteroid setup time by ~4 seconds on average.
Fixed a bug where jump-to-turf may have not worked on mine turfs.
Possible minor startup time improvements for SSair and Xenoarch.
2017-05-05 00:51:47 +03:00

27 lines
1.3 KiB
Plaintext

/datum/controller/subsystem/asteroid
name = "Asteroid"
flags = SS_NO_FIRE | SS_NO_DISPLAY
init_order = SS_INIT_ASTEROID
/datum/controller/subsystem/asteroid/Initialize(timeofday)
if(config.generate_asteroid)
// These values determine the specific area that the map is applied to.
// If you do not use the official Baycode moonbase map, you will need to change them.
// Create the chasms.
new /datum/random_map/automata/cave_system/chasms(null,0,0,3,255,255)
new /datum/random_map/automata/cave_system(null,0,0,3,255,255)
new /datum/random_map/automata/cave_system/chasms(null,0,0,4,255,255)
new /datum/random_map/automata/cave_system(null,0,0,4,255,255)
new /datum/random_map/automata/cave_system/chasms(null,0,0,5,255,255)
new /datum/random_map/automata/cave_system/high_yield(null,0,0,5,255,255)
new /datum/random_map/automata/cave_system/chasms/surface(null,0,0,6,255,255)
// Create the deep mining ore distribution map.
new /datum/random_map/noise/ore(null, 0, 0, 5, 64, 64)
new /datum/random_map/noise/ore(null, 0, 0, 4, 64, 64)
new /datum/random_map/noise/ore(null, 0, 0, 3, 64, 64)
var/counting_result = "Total number of chasms: [SSopenturf.openspace_turfs.len]"
admin_notice(span("danger", counting_result))
game_log("ASGEN", counting_result)
..()