summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-11 18:14:12 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-11 18:14:12 -0500
commit6d1d871771181e033b34e41d416d25097039004c (patch)
treeff025ac2c9be4efbf5c0ac47531aedb51bfcb622 /crawl-ref/source/food.cc
parentfa1f442ef7999d3e84dadd3e9c0823ceb937dab2 (diff)
downloadcrawl-ref-6d1d871771181e033b34e41d416d25097039004c.tar.gz
crawl-ref-6d1d871771181e033b34e41d416d25097039004c.zip
Add spacing fixes.
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc23
1 files changed, 11 insertions, 12 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 56d3e95e57..e31cf2963b 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -2265,10 +2265,10 @@ void vampire_nutrition_per_turn(const item_def &corpse, int feeding)
break;
case MONS_ELF:
- food_value += random2avg((you.experience_level * 10)/duration, 2);
+ food_value += random2avg((you.experience_level * 10) / duration, 2);
- // Elven blood gives a bit of mana at the end of feeding, but
- // only from fairly fresh corpses.
+ // Elven blood gives a bit of mana at the end of feeding,
+ // but only from fairly fresh corpses.
if (corpse.special > 150)
{
if (end_feeding)
@@ -2293,7 +2293,6 @@ void vampire_nutrition_per_turn(const item_def &corpse, int feeding)
case CE_CONTAMINATED:
food_value /= 2;
-
if (start_feeding)
mpr("Somehow this blood was not very filling!");
else if (end_feeding && corpse.special > 150)
@@ -2301,11 +2300,11 @@ void vampire_nutrition_per_turn(const item_def &corpse, int feeding)
break;
case CE_POISONOUS:
- make_hungry(food_value/2, false);
- // Always print this message - maybe you lost poison res.
- // due to feeding.
+ make_hungry(food_value / 2, false);
+ // Always print this message - maybe you lost poison
+ // resistance due to feeding.
mpr("Blech - this blood tastes nasty!");
- if (poison_player( 1 + random2(3) ))
+ if (poison_player(1 + random2(3)))
xom_is_stimulated(random2(128));
stop_delay();
return;
@@ -2315,7 +2314,7 @@ void vampire_nutrition_per_turn(const item_def &corpse, int feeding)
if (start_feeding)
mpr("This blood tastes really weird!");
mutate(RANDOM_MUTATION);
- did_god_conduct( DID_DELIBERATE_MUTATING, 10);
+ did_god_conduct(DID_DELIBERATE_MUTATING, 10);
xom_is_stimulated(100);
// Sometimes heal by one hp.
if (end_feeding && corpse.special > 150 && coinflip())
@@ -2327,14 +2326,14 @@ void vampire_nutrition_per_turn(const item_def &corpse, int feeding)
if (start_feeding)
mpr("This blood tastes *really* weird.");
give_bad_mutation();
- did_god_conduct( DID_DELIBERATE_MUTATING, 10);
+ did_god_conduct(DID_DELIBERATE_MUTATING, 10);
xom_is_stimulated(random2(200));
// No healing from bad mutagenic blood.
break;
case CE_HCL:
- rot_player( 5 + random2(5) );
- if (disease_player( 50 + random2(100) ))
+ rot_player(5 + random2(5));
+ if (disease_player(50 + random2(100)))
xom_is_stimulated(random2(100));
stop_delay();
break;