| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Client.UI.EffectDescription
Contents
Description
Description of effects.
Synopsis
- data DetailLevel
- effectToSuffix :: DetailLevel -> Effect -> Text
- detectToObject :: DetectKind -> Text
- detectToVerb :: DetectKind -> Text
- slotToSentence :: EqpSlot -> Text
- slotToName :: EqpSlot -> Text
- slotToDesc :: EqpSlot -> Text
- slotToDecorator :: EqpSlot -> Actor -> Int -> Text
- statSlots :: [EqpSlot]
- kindAspectToSuffix :: Aspect -> Text
- featureToSuff :: Feature -> Text
- featureToSentence :: Feature -> Maybe Text
- affixDice :: Dice -> Text
- tmodToSuff :: Text -> ThrowMod -> Text
- affixBonus :: Int -> Text
- wrapInParens :: Text -> Text
- wrapInChevrons :: Text -> Text
Documentation
data DetailLevel Source #
Constructors
| DetailLow | |
| DetailMedium | |
| DetailHigh | |
| DetailAll |
Instances
effectToSuffix :: DetailLevel -> Effect -> Text Source #
Suffix to append to a basic content name if the content causes the effect.
We show absolute time in seconds, not moves, because actors can have different speeds (and actions can potentially take different time intervals). We call the time taken by one player move, when walking, a move. Turn and clip are used mostly internally, the former as an absolute time unit. We show distances in steps, because one step, from a tile to another tile, is always 1 meter. We don't call steps tiles, reserving that term for the context of terrain kinds or units of area.
detectToObject :: DetectKind -> Text Source #
detectToVerb :: DetectKind -> Text Source #
slotToSentence :: EqpSlot -> Text Source #
slotToName :: EqpSlot -> Text Source #
slotToDesc :: EqpSlot -> Text Source #
kindAspectToSuffix :: Aspect -> Text Source #
featureToSuff :: Feature -> Text Source #
Internal operations
affixBonus :: Int -> Text Source #
wrapInParens :: Text -> Text Source #
wrapInChevrons :: Text -> Text Source #