Safe Haskell | None |
---|
Hacks that haven't found their home yet.
- data FactionId
- data LevelId
- newtype AbsDepth = AbsDepth Int
- data ActorId
- data Container
- data CStore
- normalLevelBound :: (Int, Int)
- divUp :: Integral a => a -> a -> a
- data GroupName
- toGroupName :: Text -> GroupName
- type Freqs = [(GroupName, Int)]
- breturn :: MonadPlus m => Bool -> a -> m a
- serverSaveName :: String
- type Rarity = [(Int, Int)]
- validateRarity :: Rarity -> [Text]
Game object identifiers
A unique identifier of a faction in a game.
Abstract level identifiers.
Absolute depth in the dungeon. When used for the maximum depth of the whole dungeon, this can be different than dungeon size, e.g., when the dungeon is branched, and it can even be different than the length of the longest branch, if levels at some depths are missing.
A unique identifier of an actor in the dungeon.
Item containers
Item container type.
Assorted
normalLevelBound :: (Int, Int)Source
Level bounds. TODO: query terminal size instead and scroll view.
toGroupName :: Text -> GroupNameSource
type Freqs = [(GroupName, Int)]Source
For each group that the kind belongs to, denoted by a GroupName
in the first component of a pair, the second component of a pair shows
how common the kind is within the group.
validateRarity :: Rarity -> [Text]Source