Adjust fortress spawns.
This commit is contained in:
parent
57ef1744c5
commit
10d8a0cc5c
2 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ newnode.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
for i = 1, math.random(12) do
|
for i = 1, math.random(12) do
|
||||||
inv:add_item('main', filler[math.random(#filler)])
|
inv:add_item('main', filler[math.random(#filler)])
|
||||||
end
|
end
|
||||||
if math.random(20) == 1 then
|
if math.random(70) == 1 then
|
||||||
inv:add_item('main', trophies[level][math.random(#trophies[level])])
|
inv:add_item('main', trophies[level][math.random(#trophies[level])])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -415,7 +415,7 @@ fun_caves.fortress = function(minp_in, maxp_in, data, area, node)
|
||||||
data[ivm] = inner_wall
|
data[ivm] = inner_wall
|
||||||
end
|
end
|
||||||
else
|
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
|
treasure_count = treasure_count + 1
|
||||||
data[ivm] = node['fun_caves:coffer']
|
data[ivm] = node['fun_caves:coffer']
|
||||||
else
|
else
|
||||||
|
|
|
@ -73,7 +73,7 @@ fun_caves.is_fortress = function(pos, cs)
|
||||||
return
|
return
|
||||||
end
|
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
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue