summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 15:08:48 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 15:08:48 +0000
commita291e99809652bb3308f08d777bafb134328d835 (patch)
treee6fa16ffe6ec572ac2f8ba44a62575d70a2e6bfe /crawl-ref/source/it_use2.cc
parent7dd20bb5af17f48ca9a2ff5e4d63cd494e0498de (diff)
downloadcrawl-ref-a291e99809652bb3308f08d777bafb134328d835.tar.gz
crawl-ref-a291e99809652bb3308f08d777bafb134328d835.zip
Disallow quivering equipped items. (You can still (fi)re your wielded
weapon if you insist, you just can't quiver it.) And another general clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6149 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 69b29c372b..8953c4eb1c 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -234,7 +234,7 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known )
// Invisibility cancels backlight.
you.duration[DUR_BACKLIGHT] = 0;
- // now multiple invisiblity casts aren't as good -- bwr
+ // Now multiple invisiblity casts aren't as good. -- bwr
if (!you.duration[DUR_INVIS])
you.duration[DUR_INVIS] = 15 + random2(pow);
else
@@ -267,7 +267,7 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known )
xom_is_stimulated(64 / factor);
break;
- // Don't generate randomly - should be rare and interesting
+ // Don't generate randomly - should be rare and interesting.
case POT_DECAY:
if (rot_player((10 + random2(10)) / factor))
xom_is_stimulated(64 / factor);
@@ -424,11 +424,11 @@ bool unwield_item(bool showMsgs)
break;
case SPWPN_SCYTHE_OF_CURSES:
case SPWPN_STAFF_OF_OLGREB:
- item.plus = 0;
+ item.plus = 0;
item.plus2 = 0;
break;
case SPWPN_STAFF_OF_WUCAD_MU:
- item.plus = 0;
+ item.plus = 0;
item.plus2 = 0;
miscast_effect( SPTYP_DIVINATION, 9, 90, 100,
"the Staff of Wucad Mu" );
@@ -476,7 +476,7 @@ bool unwield_item(bool showMsgs)
case SPWPN_PROTECTION:
if (showMsgs)
mpr("You feel less protected.");
- you.redraw_armour_class = 1;
+ you.redraw_armour_class = true;
break;
case SPWPN_VAMPIRICISM:
@@ -580,7 +580,6 @@ void unwear_armour(char unw)
break;
case SPARM_LEVITATION:
- //you.duration[DUR_LEVITATION]++;
if (you.duration[DUR_LEVITATION])
you.duration[DUR_LEVITATION] = 1;
break;
@@ -617,7 +616,7 @@ void unwear_armour(char unw)
unuse_randart(unw);
return;
-} // end unwear_armour()
+}
void unuse_randart(unsigned char unw)
{
@@ -662,7 +661,7 @@ void unuse_randart(const item_def &item)
}
}
- // modify ability scores, always output messages
+ // Modify ability scores; always output messages.
modify_stat( STAT_STRENGTH, -proprt[RAP_STRENGTH], false, item,
true);
modify_stat( STAT_INTELLIGENCE, -proprt[RAP_INTELLIGENCE], false, item,
@@ -672,4 +671,4 @@ void unuse_randart(const item_def &item)
if (proprt[RAP_NOISES] != 0)
you.special_wield = SPWLD_NONE;
-} // end unuse_randart()
+}