summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-15 17:27:15 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-15 17:27:15 +0000
commitb5bfdcc6e042fd21a41375b49a9fd47a525a3102 (patch)
treebdadca483e9b8abf9aa9180265e4ad7446a3cd1d /crawl-ref/source/makeitem.cc
parent7d722243116e34d7a39cafa6a149c341a742a884 (diff)
downloadcrawl-ref-b5bfdcc6e042fd21a41375b49a9fd47a525a3102.tar.gz
crawl-ref-b5bfdcc6e042fd21a41375b49a9fd47a525a3102.zip
Add yet more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9090 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 9bcd9df25d..b12423e474 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -1543,9 +1543,9 @@ static void _generate_weapon_item(item_def& item, bool allow_uniques,
set_equip_race(item, _determine_weapon_race(item, item_race));
- // if we allow acquirement-type items to be orcish, then
- // there's a good chance that we'll just strip them of
- // their ego type at the bottom of this function. -- bwr
+ // If we allow acquirement-type items to be orcish, then there's a
+ // good chance that we'll just strip them of their ego type at the
+ // bottom of this function. -- bwr
if (force_good && !forced_ego && get_equip_race( item ) == ISFLAG_ORCISH)
set_equip_race( item, ISFLAG_NO_RACE );
@@ -1553,10 +1553,10 @@ static void _generate_weapon_item(item_def& item, bool allow_uniques,
if (item_level < 0)
{
- // thoroughly damaged, could had been good once
+ // Thoroughly damaged, could had been good once.
if (!no_brand && (forced_ego || one_chance_in(4)))
{
- // brand is set as for "good" items
+ // Brand is set as for "good" items.
set_item_ego_type(item, OBJ_WEAPONS,
_determine_weapon_brand(item, 2+2*you.your_level));
}
@@ -1570,7 +1570,7 @@ static void _generate_weapon_item(item_def& item, bool allow_uniques,
|| x_chance_in_y(51 + item_level, 200))
&& !_item_is_mundane(item))
{
- // Make a better item (possibly ego)
+ // Make a better item (possibly ego).
if (!no_brand)
{
set_item_ego_type(item, OBJ_WEAPONS,
@@ -1586,7 +1586,7 @@ static void _generate_weapon_item(item_def& item, bool allow_uniques,
const int chance = (force_good ? 200 : item_level);
- // odd-looking, but this is how the algorithm compacts {dlb}:
+ // Odd-looking, but this is how the algorithm compacts {dlb}.
for (int i = 0; i < 4; ++i)
{
item.plus += random2(3);
@@ -1595,7 +1595,7 @@ static void _generate_weapon_item(item_def& item, bool allow_uniques,
break;
}
- // odd-looking, but this is how the algorithm compacts {dlb}:
+ // Odd-looking, but this is how the algorithm compacts {dlb}.
for (int i = 0; i < 4; ++i)
{
item.plus2 += random2(3);