Add another fortress design.

This commit is contained in:
Duane 2016-07-01 16:18:30 -05:00
parent 0b1e15bf4d
commit 91de8b0abf

View file

@ -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)