summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-22 18:28:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-22 18:28:44 +0000
commit4ac2f786ed16181b99248a26819d7c7811c6de4b (patch)
treedaecca626d1e50460782f3538c2925877a687fb2 /crawl-ref/source/fight.cc
parent7dba1f9243f2bde04016a56526dcf68b658ceaf6 (diff)
downloadcrawl-ref-4ac2f786ed16181b99248a26819d7c7811c6de4b.tar.gz
crawl-ref-4ac2f786ed16181b99248a26819d7c7811c6de4b.zip
Comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4474 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 82543ee2ad..d6700faa1e 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -180,10 +180,11 @@ static int calc_your_to_hit_unarmed(int uattack = UNAT_NO_ATTACK,
if (wearing_amulet(AMU_INACCURACY))
your_to_hit -= 5;
- // vampires know how to bite and aim better when hungry
+ // vampires know how to bite and aim better when thirsty
if (you.species == SP_VAMPIRE && uattack == UNAT_BITE)
{
your_to_hit += 1;
+
if (vampiric)
{
if (you.hunger_state <= HS_STARVING)
@@ -1018,7 +1019,8 @@ bool melee_attack::player_aux_unarmed()
if (_vamp_wants_blood_from_monster(def))
{
// prob of vampiric bite:
- // 1/4 when non-hungry, 1/2 when hungry, 100% when starving
+ // 1/4 when non-thirsty, 1/2 when thirsty, 100% when
+ // bloodless
if (you.hunger_state > HS_HUNGRY && coinflip())
break;