Safe Haskell | None |
---|
Effects of content on other content. No operation in this module
involves the State
or Action
type.
- data Effect a
- effectTrav :: Effect a -> (a -> State s b) -> State s (Effect b)
- effectToSuffix :: Effect Int -> Text
- effectToBenefit :: Effect Int -> Int
Documentation
effectTrav :: Effect a -> (a -> State s b) -> State s (Effect b)Source
Transform an effect using a stateful function.
effectToSuffix :: Effect Int -> TextSource
effectToBenefit :: Effect Int -> IntSource
How much AI benefits from applying the effect. Multipllied by item p. Negative means harm to the enemy when thrown at him. Effects with zero benefit won't ever be used, neither actively nor passively.