Safe Haskell | None |
---|
Effects of content on other content. No operation in this module
involves the State
or Action
type.
- data Effect a
- = NoEffect
- | Heal !Int
- | Hurt !RollDice !a
- | Mindprobe !Int
- | Dominate
- | CallFriend !Int
- | Summon !Int
- | CreateItem !Int
- | ApplyPerfume
- | Regeneration !a
- | Searching !a
- | Ascend !Int
- | Escape
- effectTrav :: Effect a -> (a -> State s b) -> State s (Effect b)
- effectToSuffix :: Effect Int -> Text
Documentation
NoEffect | |
Heal !Int | |
Hurt !RollDice !a | |
Mindprobe !Int | |
Dominate | |
CallFriend !Int | |
Summon !Int | |
CreateItem !Int | |
ApplyPerfume | |
Regeneration !a | |
Searching !a | |
Ascend !Int | |
Escape |
effectTrav :: Effect a -> (a -> State s b) -> State s (Effect b)Source
Transform an effect using a stateful function.
effectToSuffix :: Effect Int -> TextSource