Safe Haskell | None |
---|
Effects of content on other content. No operation in this module
involves the State
or Action
type.
- data Effect
- = NoEffect
- | Heal
- | Wound !RollDice
- | Dominate
- | SummonFriend
- | SummonEnemy
- | ApplyPerfume
- | Regeneration
- | Searching
- | Ascend
- | Descend
- effectToSuffix :: Effect -> Text
- effectToBenefit :: Effect -> Int
Documentation
All possible effects, some of them parameterized or dependent on outside coefficients, e.g., item power.
effectToSuffix :: Effect -> TextSource
Suffix to append to a basic content name, if the content causes the effect.
effectToBenefit :: Effect -> IntSource
How much AI benefits from applying the effect. Multipllied by item power. Negative means harm to the enemy when thrown at him. Effects with zero benefit won't ever be used, neither actively nor passively.