summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-08 21:31:51 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-08 21:31:51 +0000
commitca54ca53590788e28c47f0ea7f6c072d65a640d9 (patch)
tree4bcfe3c14e06d51289054a5dde3e28d4fdf4abca /crawl-ref/source/spl-book.cc
parent1b08247fbd1c4a95902188cd01e5510e8c2e79d3 (diff)
downloadcrawl-ref-ca54ca53590788e28c47f0ea7f6c072d65a640d9.tar.gz
crawl-ref-ca54ca53590788e28c47f0ea7f6c072d65a640d9.zip
Make vampires' spell (and ability) hunger dependent on their hunger state.
Thirsty: 75% Very thirsty: 50% Near Bloodless: 25% Bloodless: None git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4933 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 6958d365f2..3f0e043702 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1507,6 +1507,8 @@ int staff_spell( int staff )
food -= 10 * you.skills[SK_EVOCATIONS];
if (food < diff * 5)
food = diff * 5;
+
+ food = calc_hunger(food);
}
if (food && (you.hunger_state == HS_STARVING || you.hunger <= food))
@@ -1539,7 +1541,7 @@ int staff_spell( int staff )
return (-1);
}
- make_hungry( food, true );
+ make_hungry(food, true, true);
istaff.plus -= mana;
you.wield_change = true;
you.turn_is_over = true;