| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Game.LambdaHack.Client.UI.EffectDescription
Description
Description of effects. No operation in this module involves state or monad types.
- effectToSuffix :: Effect -> Text
- featureToSuff :: Feature -> Text
- kindAspectToSuffix :: Aspect -> Text
- affixDice :: Dice -> Text
- featureToSentence :: Feature -> Maybe Text
- slotToSentence :: EqpSlot -> Text
- slotToName :: EqpSlot -> Text
- slotToDesc :: EqpSlot -> Text
- slotToDecorator :: EqpSlot -> Actor -> Int -> Text
- statSlots :: [EqpSlot]
Documentation
effectToSuffix :: 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.
featureToSuff :: Feature -> Text Source #
kindAspectToSuffix :: Aspect -> Text Source #
slotToSentence :: EqpSlot -> Text Source #
slotToName :: EqpSlot -> Text Source #
slotToDesc :: EqpSlot -> Text Source #