From d5968daee172a5cbe5d3e35807b66e6e7a167783 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 23 Apr 2008 16:53:23 +0000 Subject: Add more minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4549 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 35d8e4e1e0..9a650c722e 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -655,7 +655,7 @@ static bool _player_vampire_draws_blood(const int mons, const int damage, } // gain nutrition - if (you.hunger_state < HS_ENGORGED) + if (you.hunger_state != HS_ENGORGED) { int food_value = 0; if (chunk_type == CE_CLEAN) @@ -1021,10 +1021,10 @@ bool melee_attack::player_aux_unarmed() // prob of vampiric bite: // 1/4 when non-thirsty, 1/2 when thirsty, 100% when // bloodless - if (you.hunger_state > HS_HUNGRY && coinflip()) + if (you.hunger_state >= HS_SATIATED && coinflip()) break; - if (you.hunger_state > HS_STARVING && coinflip()) + if (you.hunger_state != HS_STARVING && coinflip()) break; damage_brand = SPWPN_VAMPIRICISM; -- cgit v1.2.3-54-g00ecf