From e63286e0c49987bb59158534f4a281a33f165b39 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 9 Dec 2008 08:07:19 +0000 Subject: 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 --- crawl-ref/source/xom.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/xom.cc') 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); } } -- cgit v1.2.3-54-g00ecf