From 756f57690d1f05b741ffdc929f2d0b0550ddb288 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 31 Oct 2009 12:06:16 -0500 Subject: 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. --- crawl-ref/source/artefact.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/artefact.cc') 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; -- cgit v1.2.3-54-g00ecf