Adjust fortress spawns.

This commit is contained in:
Duane 2016-07-22 03:38:16 -05:00
parent 57ef1744c5
commit 10d8a0cc5c
2 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ newnode.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
for i = 1, math.random(12) do
inv:add_item('main', filler[math.random(#filler)])
end
if math.random(20) == 1 then
if math.random(70) == 1 then
inv:add_item('main', trophies[level][math.random(#trophies[level])])
end
end
@ -415,7 +415,7 @@ fun_caves.fortress = function(minp_in, maxp_in, data, area, node)
data[ivm] = inner_wall
end
else
if y2 == 0 and y == minp.y + y2 * cell_size + 1 and data[ivm - area.ystride] ~= node['air'] and math.random(700) == 1 then
if y2 == 0 and y == minp.y + y2 * cell_size + 1 and data[ivm - area.ystride] ~= node['air'] and math.random(200) == 1 then
treasure_count = treasure_count + 1
data[ivm] = node['fun_caves:coffer']
else

View file

@ -73,7 +73,7 @@ fun_caves.is_fortress = function(pos, cs)
return
end
if math.floor((n * 10000) % (fun_caves.DEBUG and 4 or 19)) == 1 then
if math.floor((n * 10000) % 13) == 1 then
return true
end