Moves asteroid generation prior to geometry initialization. Adds config for asteroid generation.

This commit is contained in:
Zuhayr
2015-03-18 01:31:24 +10:30
parent 2c269e5159
commit 3718245e45
3 changed files with 8 additions and 3 deletions

View File

@@ -125,6 +125,7 @@ var/list/gamemode_cache = list()
var/use_loyalty_implants = 0
var/welder_vision = 1
var/generate_asteroid = 0
//Used for modifying movement speed for mobs.
//Unversal modifiers
@@ -309,6 +310,9 @@ var/list/gamemode_cache = list()
if ("mentors")
config.mods_are_mentors = 1
if ("generate_asteroid")
config.generate_asteroid = 1
if("allow_admin_ooccolor")
config.allow_admin_ooccolor = 1

View File

@@ -34,9 +34,6 @@ datum/controller/game_controller/New()
datum/controller/game_controller/proc/setup()
world.tick_lag = config.Ticklag
//Create the asteroid Z-level.
new /datum/random_map(null,13,32,5,217,223)
spawn(20)
createRandomZlevel()

View File

@@ -57,6 +57,10 @@ var/global/datum/global_init/init = new ()
// due to this list not being instantiated.
plant_controller = new()
//Create the asteroid Z-level.
if(config.generate_asteroid)
new /datum/random_map(null,13,32,5,217,223)
// Create autolathe recipes, as above.
populate_lathe_recipes()