summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 17:05:24 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 17:05:24 +0000
commit9729c61a6771ce007e98a1da6c42a28374408fc7 (patch)
tree43c5f69c54e86bd383a64db7d7b6669154f8262f /crawl-ref/source/item_use.cc
parenta7ae331fadafe35f3bc95b165c2206268e05e325 (diff)
downloadcrawl-ref-9729c61a6771ce007e98a1da6c42a28374408fc7.tar.gz
crawl-ref-9729c61a6771ce007e98a1da6c42a28374408fc7.zip
* Fix 2804813: Auto-removing the stronger of two rings of the same type.
(You now get to choose, we might want to auto-remove the weaker instead.) * Change "Glow" colouring for magic contamination < 5 to darkgrey. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9964 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 7b169a0062..9478afdb21 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3493,6 +3493,8 @@ static bool _swap_rings(int ring_slot)
// Don't prompt if both rings are of the same type.
if (lring->sub_type == rring->sub_type
+ && lring->plus == rring->plus
+ && lring->plus2 == rring->plus2
&& !is_artefact(*lring) && !is_artefact(*rring))
{
if (item_cursed(*lring))