diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-16 09:52:35 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-16 09:52:35 +0000 |
commit | 18266441fdeec28e0eba1818726a2c41b2376aa4 (patch) | |
tree | 8e3e73051c422692bf925e1d98d82b11797c0fed /crawl-ref/source/player.cc | |
parent | 9775ec72ba0943333eb80d4274d9074741ab3cbb (diff) | |
download | crawl-ref-18266441fdeec28e0eba1818726a2c41b2376aa4.tar.gz crawl-ref-18266441fdeec28e0eba1818726a2c41b2376aa4.zip |
Fix the remaining (known) issues with butchering all corpses in a stash:
* You should now get the "not swapping back" warning also for sac sessions
and chained butchery.
* Vampires choosing (a)ll from a "Bottle this corpse?" prompt will only
attempt to bottle corpses that actually contain blood (so they no longer
will be autobutchering bloodless corpses in the stash).
Also changed Vampire spell hunger reduction to
Thirsty, Very Thirsty: 50%
Near Starving, Starving: None
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5075 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index d7c49328c8..f96b3ec1d2 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6017,13 +6017,15 @@ void player::make_hungry(int hunger_increase, bool silent) } // For semi-undead species (Vampire!) reduce food cost for spells and abilities -// to 75% (hungry), 50% (very hungry), 25% (near starving), or zero (starving). +// to 50% (hungry, very hungry) or zero (near starving, starving). int calc_hunger(int food_cost) { if (you.is_undead == US_SEMI_UNDEAD && you.hunger_state < HS_SATIATED) { - food_cost *= you.hunger_state; - food_cost /= 4; + if (you.hunger_state <= HS_NEAR_STARVING) + return 0; + + return (food_cost/2); } return (food_cost); } |