summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-11 22:54:07 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-11 22:54:07 +0000
commit944a7fef21fe394a7fcb695f7d51058600e40a99 (patch)
tree403422c4eb73ad401b419ef3f290dec72aff1150 /crawl-ref/source/effects.cc
parent3a5945e2b78398b85625a89fe7164b7dfa23c5ba (diff)
downloadcrawl-ref-944a7fef21fe394a7fcb695f7d51058600e40a99.tar.gz
crawl-ref-944a7fef21fe394a7fcb695f7d51058600e40a99.zip
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
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc23
1 files changed, 18 insertions, 5 deletions
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)