summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-27 10:01:26 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-27 10:01:26 +0000
commit4d5a197bc8c4d782e374364286ce91fd2e118758 (patch)
tree12901f8b4121ecebc13c2c75cc18aeeaa8627ba4 /crawl-ref/source/spells4.cc
parent05d3781c9f84d761b4f0aa7c3241aea9523710f8 (diff)
downloadcrawl-ref-4d5a197bc8c4d782e374364286ce91fd2e118758.tar.gz
crawl-ref-4d5a197bc8c4d782e374364286ce91fd2e118758.zip
Yet another session of comment/whitespace cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5291 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc18
1 files changed, 8 insertions, 10 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 3004edbfe8..afec4122c8 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -1769,7 +1769,7 @@ void cast_fulsome_distillation( int powc )
break;
}
- // If not powerful enough, we downgrade the potion
+ // If not powerful enough, we downgrade the potion.
if (random2(50) > powc + 10 * rotten)
{
switch (pot_type)
@@ -1797,24 +1797,22 @@ void cast_fulsome_distillation( int powc )
}
}
- // We borrow the corpse's object to make our potion:
+ // We borrow the corpse's object to make our potion.
mitm[corpse].base_type = OBJ_POTIONS;
- mitm[corpse].sub_type = pot_type;
- mitm[corpse].quantity = 1;
- mitm[corpse].plus = 0;
- mitm[corpse].plus2 = 0;
- mitm[corpse].flags = 0;
+ mitm[corpse].sub_type = pot_type;
+ mitm[corpse].quantity = 1;
+ mitm[corpse].plus = 0;
+ mitm[corpse].plus2 = 0;
+ mitm[corpse].flags = 0;
mitm[corpse].inscription.clear();
item_colour( mitm[corpse] ); // sets special as well
mprf("You extract %s from the corpse.",
mitm[corpse].name(DESC_NOCAP_A).c_str());
- // try to move the potion to the player (for convenience)
+ // Try to move the potion to the player (for convenience).
if (move_item_to_player( corpse, 1 ) != 1)
- {
mpr( "Unfortunately, you can't carry it right now!" );
- }
}
static int rot_living(int x, int y, int pow, int message)