Go to the source code of this file.
void afflict |
( |
Mob * |
mob, |
|
|
void(*)(Mob *) |
effect, |
|
|
int |
duration |
|
) |
| |
Apply an effect to a mob (this removes any prior effect)
- Parameters
-
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
- Parameters
-
mob | The mob which is poisoned |
void effect_poison |
( |
Mob * |
mob | ) |
|
A simple poison effect - damages every turn.
- Parameters
-
mob | The mob which is poisoned. |
bool is_afflicted |
( |
Mob * |
mob | ) |
|
Check if a mob is suffering from an effect or not
- Parameters
-
- Returns
- true if effected by something.