Add another fortress design.
This commit is contained in:
parent
0b1e15bf4d
commit
91de8b0abf
1 changed files with 23 additions and 2 deletions
25
fortress.lua
25
fortress.lua
|
@ -100,7 +100,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(10) == 1 then
|
if math.random(20) == 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
|
||||||
|
@ -204,6 +204,27 @@ end
|
||||||
|
|
||||||
|
|
||||||
local designs = {
|
local designs = {
|
||||||
|
{
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0},
|
||||||
|
{0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0},
|
||||||
|
{1,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,0},
|
||||||
|
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0},
|
||||||
|
{1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0},
|
||||||
|
{1,1,1,1,0,1,0,1,1,1,0,1,1,1,1,1,0,1,0},
|
||||||
|
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0},
|
||||||
|
{1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0},
|
||||||
|
{0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0},
|
||||||
|
{0,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0},
|
||||||
|
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0},
|
||||||
|
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0},
|
||||||
|
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
|
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
|
||||||
{0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0},
|
{0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0},
|
||||||
|
@ -376,7 +397,7 @@ fun_caves.fortress = function(minp_in, maxp_in, data, area, node)
|
||||||
end
|
end
|
||||||
|
|
||||||
if floor_type ~= 3 then
|
if floor_type ~= 3 then
|
||||||
local wall_type = math.random(4)
|
local wall_type = math.random(#designs + 1)
|
||||||
|
|
||||||
if wall_type == 1 then
|
if wall_type == 1 then
|
||||||
maze_floor(y2, minp, maxp, data, area, node)
|
maze_floor(y2, minp, maxp, data, area, node)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue