From 944a7fef21fe394a7fcb695f7d51058600e40a99 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 11 Feb 2008 22:54:07 +0000 Subject: Bar Trog from gifting weapons of pain (strongly associated with Necromantic magic) and holy wrath (blessed by TSO, whom Trog presumably hates). Also change the newwave colours of bucklers and large shields to match that of shields rather than mails. It's been this long and I never noticed... whoops! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3429 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 5d00413449..098d757386 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1406,17 +1406,30 @@ bool acquirement(object_class_type class_wanted, int agent, if ((doodad.base_type == OBJ_WEAPONS && !can_wield(&doodad, false, true)) || (doodad.base_type == OBJ_ARMOUR - && !can_wear_armour(doodad, false, true)) - - // Trog does not gift the Wrath of Trog. - || (agent == GOD_TROG && is_fixed_artefact(doodad) - && doodad.special == SPWPN_WRATH_OF_TROG)) + && !can_wear_armour(doodad, false, true))) { destroy_item(thing_created, true); thing_created = NON_ITEM; continue; } + // Trog does not gift the Wrath of Trog, nor + // weapons of pain (work together with Necromantic magic) + // or holy wrath (blessed by TSO, a god hated by Trog) + if (agent == GOD_TROG) + { + int brand = get_weapon_brand(doodad); + if (brand == SPWPN_HOLY_WRATH + || brand == SPWPN_PAIN + || is_fixed_artefact(doodad) + && doodad.special == SPWPN_WRATH_OF_TROG) + { + destroy_item(thing_created, true); + thing_created = NON_ITEM; + continue; + } + } + // MT - Check: god-gifted weapons and armor shouldn't kill you. // Except Xom. if ((agent == GOD_TROG || agent == GOD_OKAWARU) -- cgit v1.2.3-54-g00ecf