|
Ludum Dare 29
HackSoc's entry for the Ludum Dare Jam 29
|

Functions | |
| bool | is_afflicted (Mob *mob) |
| void | afflict (Mob *mob, void(*effect)(Mob *), int duration) |
| void | effect_poison (Mob *mob) |
| void | cure_poison (Mob *mob) |
Apply an effect to a mob (this removes any prior effect)
| mob | Entity to afflict. |
| effect | Effect to apply. |
| duration | Number of turns to apply the effect for (<1 = infinite) |

| void cure_poison | ( | Mob * | mob | ) |
A cure poison effect
| mob | The mob which is poisoned |


| void effect_poison | ( | Mob * | mob | ) |
A simple poison effect - damages every turn.
| mob | The mob which is poisoned. |


| bool is_afflicted | ( | Mob * | mob | ) |
Check if a mob is suffering from an effect or not
| mob | Entity to examine. |

1.8.7