summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-01 21:21:08 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-01 21:21:08 -0500
commit2ba02b60b6bcd926aaf651cfaf0e9f514d09abfd (patch)
tree20bf74fafc48763742beff46df65058becf3f9ca /crawl-ref/source/food.cc
parent251663830ec66c93ba1b3bc46216a8c33bce0b5a (diff)
downloadcrawl-ref-2ba02b60b6bcd926aaf651cfaf0e9f514d09abfd.tar.gz
crawl-ref-2ba02b60b6bcd926aaf651cfaf0e9f514d09abfd.zip
Add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 8fb6189965..c9404d9688 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -2844,7 +2844,7 @@ static bool _vampire_consume_corpse(int slot, bool invent)
if (!mons_has_blood(corpse.plus))
{
- mpr( "There is no blood in this body!" );
+ mpr("There is no blood in this body!");
return (false);
}
@@ -2857,13 +2857,14 @@ static bool _vampire_consume_corpse(int slot, bool invent)
// The delay for eating a chunk (mass 1000) is 2
// Here the base nutrition value equals that of chunks,
// but the delay should be smaller.
- const int max_chunks = mons_weight(corpse.plus)/150;
- int duration = 1 + max_chunks/3;
- duration = stepdown_value( duration, 6, 6, 12, 12 );
+ const int max_chunks = mons_weight(corpse.plus) / 150;
+ int duration = 1 + max_chunks / 3;
+ duration = stepdown_value(duration, 6, 6, 12, 12);
// Get some nutrition right away, in case we're interrupted.
// (-1 for the starting message.)
vampire_nutrition_per_turn(corpse, -1);
+
// The draining delay doesn't have a start action, and we only need
// the continue/finish messages if it takes longer than 1 turn.
start_delay(DELAY_FEED_VAMPIRE, duration, (int)invent, slot);