summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-31 12:06:16 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-31 12:07:45 -0500
commit756f57690d1f05b741ffdc929f2d0b0550ddb288 (patch)
treedb386801dcaeb782a24d576a434e0c99afcf1d51 /crawl-ref/source/artefact.cc
parent9e289c6c51d11c91cbe1fb08bd40ce430f69823c (diff)
downloadcrawl-ref-756f57690d1f05b741ffdc929f2d0b0550ddb288.tar.gz
crawl-ref-756f57690d1f05b741ffdc929f2d0b0550ddb288.zip
Ensure that Zin's name never goes on artefact weapons with the chaos
brand. Such weapons aren't currently generated, but do it just in case.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index f01455ab7e..7426432b3f 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -152,7 +152,10 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item,
break;
case GOD_ZIN:
- // Lawful god: no mutagenics.
+ // Lawful god: no chaos, no mutagenics.
+ if (brand == SPWPN_CHAOS)
+ return (false);
+
if (artefact_wpn_property(item, ARTP_MUTAGENIC))
return (false);
break;