summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-05 07:16:33 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-05 07:16:33 +0000
commit503d86058c66fc541df68dd356390f0d2fe36c16 (patch)
tree9ab575ce868f77b18e7a8b5d1ded19603f8c7252 /crawl-ref/source/makeitem.cc
parent28b3dd9db78b3d98762e5be3ff80256aea60759a (diff)
downloadcrawl-ref-503d86058c66fc541df68dd356390f0d2fe36c16.tar.gz
crawl-ref-503d86058c66fc541df68dd356390f0d2fe36c16.zip
Add minor cosmetic fixes, mostly involving whitespace and comments.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3001 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 7df3bd4615..7c1837cc9e 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -1679,12 +1679,12 @@ static special_missile_type determine_missile_brand(const item_def& item,
// All needles are either poison or curare.
if (item.sub_type == MI_NEEDLE)
rc = got_curare_roll(item_level) ? SPMSL_CURARE : SPMSL_POISONED;
- else
+ else
{
const int temp_rand =
(force_good ? random2(150) : random2(2000 - 55 * item_level));
- if ( temp_rand < 60 )
+ if (temp_rand < 60)
rc = SPMSL_FLAME;
else if (temp_rand < 120)
rc = SPMSL_ICE;
@@ -1701,13 +1701,14 @@ static special_missile_type determine_missile_brand(const item_def& item,
// Un-poison sling bullets; unbrand javelins and throwing nets.
if ((item.sub_type == MI_SLING_BULLET && rc == SPMSL_POISONED)
- || item.sub_type == MI_JAVELIN || item.sub_type == MI_THROWING_NET)
+ || item.sub_type == MI_JAVELIN || item.sub_type == MI_THROWING_NET)
{
rc = SPMSL_NORMAL;
}
+
return rc;
}
-
+
static void generate_missile_item(item_def& item, int force_type,
int item_level, int item_race)
{