summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 17:21:22 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 17:21:22 +0000
commit4fb4c7cba1e4c4943c8683c48602c63f86a47a43 (patch)
tree2744f3e56949dd996572962da47b2088c46b77f3 /crawl-ref/source/effects.cc
parentfc2d149b397d8efe4077001a160799d01e1d3fe9 (diff)
downloadcrawl-ref-4fb4c7cba1e4c4943c8683c48602c63f86a47a43.tar.gz
crawl-ref-4fb4c7cba1e4c4943c8683c48602c63f86a47a43.zip
Disable acquirement of blessed weapons, unless you somehow get them from
TSO (currently not possible, but just making sure). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4261 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 617d785e6f..245e65548e 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1495,6 +1495,18 @@ bool acquirement(object_class_type class_wanted, int agent,
continue;
}
+ // Only TSO gifts blessed weapons, and currently
+ // not through acquirement, but make sure of this anyway
+ if (agent != GOD_SHINING_ONE)
+ {
+ if (is_blessed(doodad))
+ {
+ 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)
if (agent == GOD_TROG)