summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-23 11:25:01 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-23 11:25:01 +0000
commit933b0c361d7ee4914b89e725a8886abb5f5e9d2c (patch)
tree6cd9a4618f4a953e519ba9b0af24d1a184e0b501 /crawl-ref/source/it_use2.cc
parent82fa0cb1d1d28ae309754c0dbcd620c554f7f1d9 (diff)
downloadcrawl-ref-933b0c361d7ee4914b89e725a8886abb5f5e9d2c.tar.gz
crawl-ref-933b0c361d7ee4914b89e725a8886abb5f5e9d2c.zip
Fixed bad message with RAP_MAGICAL_POWER.
Type safety; this required moving randart_prop_type to enum.h. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2518 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 81616c23b7..a43fac7311 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -609,17 +609,17 @@ void unuse_randart(const item_def &item)
if (proprt[RAP_AC])
{
- you.redraw_armour_class = 1;
+ you.redraw_armour_class = true;
if (!known[RAP_AC])
{
mprf("You feel less %s.",
- proprt[RAP_AC] > 0? "well-protected" : "vulnerable");
+ proprt[RAP_AC] > 0? "well-protected" : "vulnerable");
}
}
if (proprt[RAP_EVASION])
{
- you.redraw_evasion = 1;
+ you.redraw_evasion = true;
if (!known[RAP_EVASION])
{
mprf("You feel less %s.",
@@ -629,11 +629,11 @@ void unuse_randart(const item_def &item)
if (proprt[RAP_MAGICAL_POWER])
{
- you.redraw_magic_points = 1;
+ you.redraw_magic_points = true;
if (!known[RAP_MAGICAL_POWER])
{
- mprf("You feel your mana capacity %s.", proprt[RAP_EVASION] > 0?
- "decrease" : "increase");
+ mprf("You feel your mana capacity %s.",
+ proprt[RAP_MAGICAL_POWER] > 0 ? "decrease" : "increase");
}
}