diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-28 21:46:27 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-28 21:46:27 +0000 |
commit | fc09d2de4c77399a6562507ad99c394d93c5cee9 (patch) | |
tree | b957a366c7ca56c83a0e3075aed0e738a0abf5ae /crawl-ref/source/player.cc | |
parent | 0ffadca40b94c481141887d294d311ff738c2ad1 (diff) | |
download | crawl-ref-fc09d2de4c77399a6562507ad99c394d93c5cee9.tar.gz crawl-ref-fc09d2de4c77399a6562507ad99c394d93c5cee9.zip |
Fix 2004501: buggy ?identify; also finally properly id ?identify itself
after a successful identification (if there are several).
Fix 2004793: wandering mushroom flees - for real, this time (I hope).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6189 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index f0e5882a14..64a89331bf 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -4470,7 +4470,7 @@ int scan_randarts(randart_prop_type which_property, bool calc_unid) if (eq == -1) continue; - // only weapons give their effects when in our hands + // Only weapons give their effects when in our hands. if (i == EQ_WEAPON && you.inv[ eq ].base_type != OBJ_WEAPONS) continue; @@ -4478,15 +4478,17 @@ int scan_randarts(randart_prop_type which_property, bool calc_unid) continue; // Ignore unidentified items [TileCrawl dump enhancements]. - if (!item_ident(you.inv[ eq ], ISFLAG_KNOW_PROPERTIES) && - !calc_unid) + if (!item_ident(you.inv[ eq ], ISFLAG_KNOW_PROPERTIES) + && !calc_unid) + { continue; + } retval += randart_wpn_property( you.inv[ eq ], which_property ); } return (retval); -} // end scan_randarts() +} void modify_stat(stat_type which_stat, char amount, bool suppress_msg, const char *cause, bool see_source) |