summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-24 23:14:15 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-27 01:53:01 +0200
commit679d65df8033fe3f969cefc459fbf810e97f5af0 (patch)
tree70fbfdad68106b0483500d56798670de07a74f69 /crawl-ref/source/delay.cc
parent38e8f2dd1293f64600e7238f94c2e6239cb5c75f (diff)
downloadcrawl-ref-679d65df8033fe3f969cefc459fbf810e97f5af0.tar.gz
crawl-ref-679d65df8033fe3f969cefc459fbf810e97f5af0.zip
Rebase hunger values at 0 (from 100).
Also, get rid of a number (but not all) literal values, replacing them with defines. No compensation is given for proportional costs (Zin's wrath, hungry ghost melee).
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 273977a0f0..1e164e51c1 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -607,7 +607,7 @@ bool already_learning_spell(int spell)
// more amused the hungrier you are.
static void _xom_check_corpse_waste()
{
- const int food_need = max(7000 - you.hunger, 0);
+ const int food_need = max(HUNGER_SATIATED - you.hunger, 0);
xom_is_stimulated(50 + (151 * food_need / 6000));
}