summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-09 08:07:19 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-09 08:07:19 +0000
commite63286e0c49987bb59158534f4a281a33f165b39 (patch)
tree84209786ef5058deb28841bf03f554733fac92d4 /crawl-ref/source/xom.cc
parent9da27c1648c90a307ad2a1e291608991b76953ad (diff)
downloadcrawl-ref-e63286e0c49987bb59158534f4a281a33f165b39.tar.gz
crawl-ref-e63286e0c49987bb59158534f4a281a33f165b39.zip
When upgrading a hostile monster's non-artefact weapon to the chaos brand, make
it glowing if it doesn't already have any cosmestic flags (in case the player didn't see it get upgraded) and increase it's pluses to more like what it would have been if it had been created an ego item. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7798 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 935a210c3e..b715e869c2 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -620,6 +620,14 @@ static void _do_chaos_upgrade(item_def &item, const monsters* mon)
item.special = brand;
if (seen)
set_ident_flags(item, ISFLAG_KNOW_TYPE);
+
+ // Make sure it's visibly special
+ if (!(item.flags & ISFLAG_COSMETIC_MASK))
+ item.flags |= ISFLAG_GLOWING;
+
+ // Make the pluses more like a randomly generated ego item
+ item.plus += random2(5);
+ item.plus2 += random2(5);
}
}