Increase average size of treeferns (generate smallest less frequently)

This commit is contained in:
Rogier 2015-06-21 10:39:41 +02:00
parent 8b2a32ceae
commit f91caae9bd
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@ abstract_ferns.grow_tree_fern = function(pos)
return
end
local size = math.random(1, 5)
local size = math.random(1, 4) + math.random(1, 4)
if (size > 5) then
size = 10 - size
end
local crown = ({ "ferns:tree_fern_leaves", "ferns:tree_fern_leaves_02" })[math.random(1, 2)]
local i = 1