Enable traps for more rooms

This commit is contained in:
Wuzzy 2019-08-25 00:50:22 +02:00
parent b278da5bcf
commit e6a76549f6
1 changed files with 20 additions and 10 deletions

View File

@ -50,6 +50,7 @@ local room_types = {
" ","c","c"," "," "," ","c","c"," ", " ","c","c"," "," "," ","c","c"," ",
" "," "," "," ","^"," "," "," "," " " "," "," "," ","^"," "," "," "," "
}, },
traps = true,
}, },
-- hidden room -- hidden room
{ {
@ -110,7 +111,7 @@ local room_types = {
" ","c"," ","c"," ","c"," ","c"," ", " ","c"," ","c"," ","c"," ","c"," ",
" "," ","^"," ","^"," ","^"," ","^", " "," ","^"," ","^"," ","^"," ","^",
}, },
--traps = true, traps = true,
}, },
-- plusses -- plusses
{ {
@ -126,7 +127,7 @@ local room_types = {
" "," ","c",">"," ","<","c"," "," ", " "," ","c",">"," ","<","c"," "," ",
"c"," "," "," "," "," "," "," ","c", "c"," "," "," "," "," "," "," ","c",
}, },
--traps = true, traps = true,
}, },
-- diamond -- diamond
{ {
@ -142,7 +143,6 @@ local room_types = {
"s","s","c"," "," "," ","c","s","s", "s","s","c"," "," "," ","c","s","s",
">","s","s","c","c","c","s","s","s", ">","s","s","c","c","c","s","s","s",
}, },
--traps = true,
}, },
-- square -- square
{ {
@ -188,6 +188,7 @@ local room_types = {
"S","S","S","S","c",">"," "," "," ", "S","S","S","S","c",">"," "," "," ",
"S","S","S","S","S"," "," "," "," ", "S","S","S","S","S"," "," "," "," ",
}, },
traps = true,
}, },
-- hallway 4 -- hallway 4
{ {
@ -263,7 +264,7 @@ local room_types = {
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
--traps = true, traps = true,
}, },
-- pacman -- pacman
{ {
@ -279,21 +280,23 @@ local room_types = {
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
traps = true,
}, },
-- the wall -- the wall
{ {
style = "yrepeat", style = "yrepeat",
layout = { layout = {
"S","S","S","S","S","S","S"," ","<", "S","S","S","S","S","S","S"," ","<",
"c","c","c","c","c","c","S"," ","c", "s","c","s","c","s","c","s"," ","c",
"c"," "," "," "," "," ","c"," ","<", "c"," "," "," "," "," ","c"," ","<",
"c"," "," "," "," "," ","c"," ","c", "s"," "," "," "," "," ","s"," ","c",
" "," "," "," "," ","<","c"," ","<", " "," "," "," "," ","<","c"," ","<",
"c"," "," "," "," "," ","c"," ","c", "s"," "," "," "," "," ","s"," ","c",
"c"," "," "," "," "," ","c"," ","<", "c"," "," "," "," "," ","c"," ","<",
"c","c","c","c","c","c","c"," ","c", "s","c","s","c","s","c","s"," ","c",
"S","S","S","S","S","S","S"," ","<", "S","S","S","S","S","S","S"," ","<",
}, },
traps = true,
}, },
-- split -- split
{ {
@ -309,6 +312,7 @@ local room_types = {
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
traps = true,
}, },
-- 4 small pillars -- 4 small pillars
{ {
@ -324,6 +328,7 @@ local room_types = {
" "," "," "," ","v"," "," "," "," ", " "," "," "," ","v"," "," "," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
traps = true,
}, },
-- 6 pillars -- 6 pillars
{ {
@ -355,6 +360,7 @@ local room_types = {
" ","S"," ","S"," ","S"," ","S"," ", " ","S"," ","S"," ","S"," ","S"," ",
" ","S","^","S","^","S","^","S","^", " ","S","^","S","^","S","^","S","^",
}, },
traps = true,
}, },
-- inside -- inside
{ {
@ -385,6 +391,7 @@ local room_types = {
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
traps = true,
}, },
-- 2 chests -- 2 chests
{ {
@ -446,6 +453,7 @@ local room_types = {
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
traps = true,
}, },
-- diamond 2 -- diamond 2
{ {
@ -461,6 +469,7 @@ local room_types = {
"S"," "," "," ","c"," "," "," ","S", "S"," "," "," ","c"," "," "," ","S",
"S","S"," "," "," "," "," ","S","S", "S","S"," "," "," "," "," ","S","S",
}, },
traps = true,
}, },
-- ultra pillars -- ultra pillars
{ {
@ -491,6 +500,7 @@ local room_types = {
"S"," "," ","v"," "," ","v"," "," ", "S"," "," ","v"," "," ","v"," "," ",
"S"," "," "," "," "," "," "," "," ", "S"," "," "," "," "," "," "," "," ",
}, },
traps = true,
}, },
-- sides -- sides
{ {
@ -522,7 +532,7 @@ local room_types = {
" "," ","v"," ","v"," ","v"," "," ", " "," ","v"," ","v"," ","v"," "," ",
" "," "," "," "," "," "," "," "," ", " "," "," "," "," "," "," "," "," ",
}, },
--traps = true, traps = true,
}, },
-- Ankh statue -- Ankh statue
{ {
@ -1051,7 +1061,7 @@ function tsm_pyramids.make_room(pos, stype, room_id, rotations)
end end
end end
end end
if room.traps then if room.traps and math.random(1,4) then
tsm_pyramids.make_traps(pos, stype, rotations, layout) tsm_pyramids.make_traps(pos, stype, rotations, layout)
end end
if sanded then if sanded then