diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-23 16:53:23 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-23 16:53:23 +0000 |
commit | d5968daee172a5cbe5d3e35807b66e6e7a167783 (patch) | |
tree | 41031a1e741b2d68aafacce75a94d9723981b4a4 /crawl-ref/source/fight.cc | |
parent | 1d68d70963ec82ff2c70ec9f82c0e776a79079d7 (diff) | |
download | crawl-ref-d5968daee172a5cbe5d3e35807b66e6e7a167783.tar.gz crawl-ref-d5968daee172a5cbe5d3e35807b66e6e7a167783.zip |
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4549 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; |