Adjustments and add sand monster.

This commit is contained in:
Duane Robertson 2016-05-18 05:13:38 -05:00
parent 54cff8252b
commit 36597871fb
10 changed files with 32 additions and 35 deletions

View file

@ -22,13 +22,13 @@ function fun_caves.make_fungal_tree(data, area, pos, height, leaves, fruit)
local force_y = math.random(1,3) - 2
for z = -radius,radius do
for x = -radius,radius do
local sr = math.random(1,27)
local sr = math.random(1,100)
local i = pos + z*area.zstride + y*area.ystride + x
if force_x == x and force_y == y then
data[i] = leaves
elseif sr == 1 then
data[i] = fruit
elseif sr < 14 then
elseif sr < 50 then
data[i] = leaves
end
end