just a little tweak
This commit is contained in:
parent
e6fc4011ac
commit
b43dbe0455
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ import Debug.Trace
|
||||||
|
|
||||||
data TileState
|
data TileState
|
||||||
= Wall
|
= Wall
|
||||||
| Wind
|
-- | Wind
|
||||||
| Door
|
| Door
|
||||||
| Hall
|
| Hall
|
||||||
| Offi
|
| Offi
|
||||||
|
@ -25,7 +25,7 @@ data TileState
|
||||||
|
|
||||||
instance Show TileState where
|
instance Show TileState where
|
||||||
show Wall = "#"
|
show Wall = "#"
|
||||||
show Wind = "~"
|
-- show Wind = "~"
|
||||||
show Door = "+"
|
show Door = "+"
|
||||||
show Hall = "_"
|
show Hall = "_"
|
||||||
show Offi = "."
|
show Offi = "."
|
||||||
|
@ -96,7 +96,7 @@ placeHalls rng fc input =
|
||||||
(nw, g3) = randomR (2, wmax) g2
|
(nw, g3) = randomR (2, wmax) g2
|
||||||
(nbs, nmat) = buildHall cross nw b amat
|
(nbs, nmat) = buildHall cross nw b amat
|
||||||
in
|
in
|
||||||
if hallRatio nmat < 0.175 && wmax - 1 > 2
|
if hallRatio nmat < 0.2 && wmax - 1 > 2
|
||||||
then doHalls g3 nbs (row, col) (wmax -1) nmat
|
then doHalls g3 nbs (row, col) (wmax -1) nmat
|
||||||
else (g3, nmat)
|
else (g3, nmat)
|
||||||
) (rand, mat) bounds
|
) (rand, mat) bounds
|
||||||
|
|
Loading…
Reference in a new issue