LambdaHack-0.2.6: 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.



data Effect Source

All possible effects, some of them parameterized or dependent on outside coefficients, e.g., item power.

effectToSuffix :: Effect -> StringSource

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.