Added random-number-based rarity control

This commit is contained in:
Vanessa Ezekowitz
2013-01-20 12:01:07 -05:00
parent b41cf5570c
commit 5abcd9034e
2 changed files with 4 additions and 0 deletions

View File

@ -128,6 +128,9 @@ biome = {
avoid_radius = num, -- [*] how much distance to leave between
the object to be added and the objects
to be avoided.
rarity = num, -- how rare should this tree be in its biome?
Larger values more rare, determined by
math.random(1,100) > this
seed_diff = num, -- perlin seed-diff value. Defaults to 0,
which causes the function to inherit the
global value of 329.