Safe Haskell | None |
---|---|
Language | Haskell2010 |
The type of cave layout kinds.
- data CaveKind = CaveKind {
- csymbol :: !Char
- cname :: !Text
- cfreq :: !Freqs
- cxsize :: !X
- cysize :: !Y
- cgrid :: !DiceXY
- cminPlaceSize :: !DiceXY
- cmaxPlaceSize :: !DiceXY
- cdarkChance :: !Dice
- cnightChance :: !Dice
- cauxConnects :: !Rational
- cmaxVoid :: !Rational
- cminStairDist :: !Int
- cdoorChance :: !Chance
- copenChance :: !Chance
- chidden :: !Int
- cactorFreq :: !Freqs
- citemNum :: !Dice
- citemFreq :: !Freqs
- cplaceFreq :: !Freqs
- cpassable :: !Bool
- cdefTile :: !Text
- cdarkCorTile :: !Text
- clitCorTile :: !Text
- cfillerTile :: !Text
- couterFenceTile :: !Text
- clegendDarkTile :: !Text
- clegendLitTile :: !Text
- validateCaveKind :: [CaveKind] -> [CaveKind]
Documentation
Parameters for the generation of dungeon levels.
CaveKind | |
|
validateCaveKind :: [CaveKind] -> [CaveKind] Source
Filter a list of kinds, passing through only the incorrect ones, if any.
Catch caves with not enough space for all the places. Check the size of the cave descriptions to make sure they fit on screen.