summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 03:23:34 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 03:23:34 +0000
commit37bace0de351260e14b6e1102e2f8f101d2bb162 (patch)
tree1b3b023d0920599c78d81bbae7a09fe909b2b2cb /crawl-ref/source/it_use2.cc
parent767d1c86be4624c7c91da0b398134319d5aab612 (diff)
downloadcrawl-ref-37bace0de351260e14b6e1102e2f8f101d2bb162.tar.gz
crawl-ref-37bace0de351260e14b6e1102e2f8f101d2bb162.zip
For unidentified randart jewellery, remember and display obvious-from-wearing
effects caused by the base type item as if they were randart properties. Related changes: * Equpping or unequipping a ring of magical power or staff of power will give a message about mana capacity increasing/decreasing. * The randart property RAP_MAGICAL_POWER has been added. randart_wpn_property() doesn't yet give this to any randarts, but the rest of the code for it is in place. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2419 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 832e7bfe2a..34a5c335f1 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -493,7 +493,10 @@ void unwield_item(bool showMsgs)
}
if (item.base_type == OBJ_STAVES && item.sub_type == STAFF_POWER)
+ {
calc_mp();
+ mpr("You fell your mana capacity decrease.");
+ }
return;
} // end unwield_item()
@@ -625,6 +628,16 @@ void unuse_randart(const item_def &item)
}
}
+ if (proprt[RAP_MAGICAL_POWER])
+ {
+ you.redraw_magic_points = 1;
+ if (!known[RAP_MAGICAL_POWER])
+ {
+ mprf("You feel you mana capacity %s.", proprt[RAP_EVASION] > 0?
+ "decrease" : "increase");
+ }
+ }
+
// modify ability scores, always output messages
modify_stat( STAT_STRENGTH, -proprt[RAP_STRENGTH], false, item,
true);