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
|
||||
inv:add_item('main', filler[math.random(#filler)])
|
||||
end
|
||||
if math.random(10) == 1 then
|
||||
if math.random(20) == 1 then
|
||||
inv:add_item('main', trophies[level][math.random(#trophies[level])])
|
||||
end
|
||||
end
|
||||
|
@ -204,6 +204,27 @@ end
|
|||
|
||||
|
||||
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,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
|
||||
|
||||
if floor_type ~= 3 then
|
||||
local wall_type = math.random(4)
|
||||
local wall_type = math.random(#designs + 1)
|
||||
|
||||
if wall_type == 1 then
|
||||
maze_floor(y2, minp, maxp, data, area, node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue