diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-05-15 15:08:35 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-05-19 23:03:20 +0100 |
commit | 9115f98af642988820f8af8259c955f2718b1cd4 (patch) | |
tree | 4018c16f0c51b32ee243bacc5e98f73d4a783f47 /crawl-ref/source/food.h | |
parent | 9ec71c7cb06187d7a3069bf6aefd490328b7ed31 (diff) | |
download | crawl-ref-9115f98af642988820f8af8259c955f2718b1cd4.tar.gz crawl-ref-9115f98af642988820f8af8259c955f2718b1cd4.zip |
Define hunger values and use them to eliminate a compile check
Diffstat (limited to 'crawl-ref/source/food.h')
-rw-r--r-- | crawl-ref/source/food.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/crawl-ref/source/food.h b/crawl-ref/source/food.h index 9d717187d0..aa2bc1cdae 100644 --- a/crawl-ref/source/food.h +++ b/crawl-ref/source/food.h @@ -7,10 +7,19 @@ #ifndef FOOD_H #define FOOD_H -#define BERSERK_NUTRITION 700 -#define HUNGER_STARVING 1000 -#define HUNGER_DEFAULT 6000 -#define HUNGER_MAXIMUM 12000 +#define BERSERK_NUTRITION 700 + +#define HUNGER_STARVING 1000 +#define HUNGER_NEAR_STARVING 1533 +#define HUNGER_VERY_HUNGRY 2066 +#define HUNGER_HUNGRY 2600 +#define HUNGER_SATIATED 7000 +#define HUNGER_FULL 9000 +#define HUNGER_VERY_FULL 11000 +#define HUNGER_ENGORGED 40000 + +#define HUNGER_DEFAULT 6000 +#define HUNGER_MAXIMUM 12000 int count_corpses_in_pack(bool blood_only = false); bool butchery(int which_corpse = -1, bool bottle_blood = false); |