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

Safe HaskellNone

Game.LambdaHack.Common.Effect

Description

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

Synopsis

Documentation

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.