Procedural Map Generator System

This commit is contained in:
Remie Richards
2015-02-15 12:08:02 +00:00
parent 71dd648fc1
commit 4bebfaefc3
10 changed files with 444 additions and 3 deletions
@@ -0,0 +1,37 @@
//Contents exist primarily for the nature generator test type.
//Pine Trees
/datum/mapGeneratorModule/pineTrees
spawnableAtoms = list(/obj/structure/flora/tree/pine = 30)
//Dead Trees
/datum/mapGeneratorModule/deadTrees
spawnableAtoms = list(/obj/structure/flora/tree/dead = 10)
//Random assortment of bushes
/datum/mapGeneratorModule/randBushes
spawnableAtoms = list()
/datum/mapGeneratorModule/randBushes/New()
..()
spawnableAtoms = typesof(/obj/structure/flora/ausbushes)
for(var/i in spawnableAtoms)
spawnableAtoms[i] = 20
//Random assortment of rocks and rockpiles
/datum/mapGeneratorModule/randRocks
spawnableAtoms = list(/obj/structure/flora/rock = 40, /obj/structure/flora/rock/pile = 20)
//Grass turfs
/datum/mapGeneratorModule/bottomLayer/grassTurfs
spawnableTurfs = list(/turf/unsimulated/floor/grass = 100)
//Grass tufts with a high spawn chance
/datum/mapGeneratorModule/denseLayer/grassTufts
spawnableTurfs = list()
spawnableAtoms = list(/obj/structure/flora/ausbushes/grassybush = 75)