summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-21 23:43:15 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-21 23:43:15 -0500
commit7118057c6b662c74f63fa2926501fb132121b413 (patch)
treec99c8020c2755cf32ecf6660c86b4bd838609628
parent3e308b739b80eb9fca38415cf3a6cbeafa050a88 (diff)
added an additional density control to the tree biomes to further limit how
many nodes have to be checked before a tree can spawn. This causes trees to be just a tad more sparse than intended, but greatly speeds up the map generator. Worst case drops from thousands of nodes to test per tree type to a 5-15 nodes per tree type.
-rw-r--r--biome_defs.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/biome_defs.lua b/biome_defs.lua
index 827e092..5b1c1a6 100644
--- a/biome_defs.lua
+++ b/biome_defs.lua
@@ -27,6 +27,7 @@ moretrees.beech_biome = {
avoid_radius = 10,
seed_diff = 2,
rarity = 50,
+ max_count = 15,
}
moretrees.palm_biome = {
@@ -42,6 +43,7 @@ moretrees.palm_biome = {
temp_min = 0.15,
temp_max = -0.15,
rarity = 50,
+ max_count = 10,
}
moretrees.apple_tree_biome = {
@@ -54,6 +56,7 @@ moretrees.apple_tree_biome = {
temp_min = 0.1,
temp_max = -0.15,
rarity = 75,
+ max_count = 5,
}
moretrees.oak_biome = {
@@ -66,6 +69,7 @@ moretrees.oak_biome = {
temp_min = 0.4,
temp_max = 0.2,
rarity = 50,
+ max_count = 5,
}
moretrees.sequoia_biome = {
@@ -78,6 +82,7 @@ moretrees.sequoia_biome = {
temp_min = 1,
temp_max = -0.4,
rarity = 50,
+ max_count = 15,
}
moretrees.birch_biome = {
@@ -90,6 +95,7 @@ moretrees.birch_biome = {
temp_min = 0.9,
temp_max = 0.3,
rarity = 50,
+ max_count = 10,
}
moretrees.spruce_biome = {
@@ -101,6 +107,7 @@ moretrees.spruce_biome = {
temp_min = 0.9,
temp_max = 0.7,
rarity = 50,
+ max_count = 5,
}
moretrees.pine_biome = {
@@ -112,6 +119,7 @@ moretrees.pine_biome = {
near_nodes_size = 15,
near_nodes_count = 5,
rarity = 50,
+ max_count = 10,
}
moretrees.willow_biome = {
@@ -125,6 +133,7 @@ moretrees.willow_biome = {
near_nodes_size = 15,
near_nodes_count = 5,
rarity = 75,
+ max_count = 5,
}
moretrees.rubber_tree_biome = {
@@ -139,6 +148,7 @@ moretrees.rubber_tree_biome = {
near_nodes_count = 10,
temp_min = -0.15,
rarity = 75,
+ max_count = 10,
}
@@ -154,6 +164,7 @@ moretrees.jungletree_biome = {
near_nodes_count = 10,
-- temp_min = 0.05,
rarity = 50,
+ max_count = 10,
}
moretrees.fir_biome = {
@@ -165,4 +176,5 @@ moretrees.fir_biome = {
temp_min = 0.9,
temp_max = 0.3,
rarity = 50,
+ max_count = 10,
}