LambdaHack-0.2.8: A roguelike game engine in early and active development

Safe HaskellNone



Effects of content on other content. No operation in this module involves the State or Action type.



effectTrav :: Effect a -> (a -> State s b) -> State s (Effect b)Source

Transform an effect using a stateful function.

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.