|
Atrinik Server 2.5
|
Go to the source code of this file.
Defines | |
| #define | FOOD_MAX 999 |
Functions | |
| void | apply_food (object *op, object *tmp) |
| void | create_food_force (object *who, object *food, object *force) |
| void | eat_special_food (object *who, object *food) |
The food gives specials, like +/- hp or sp, protections and stats.
Food can be good or bad (good effect or bad effect), and cursed or not. If food is "good" (for example, Str +1 and Dex +1), then it puts those effects as force in the player for some time.
If good food is cursed, all positive values are turned to negative values.
If bad food (Str -1, Dex -1) is uncursed, it gives just those values.
If bad food is cursed, all negative values are doubled.
Food effects can stack. For really powerful food, a high food value should be set, so the player can't eat a lot of such food, as his stomach will be full.
| who | Object eating the food. |
| food | The food object. |
1.7.4