From 102ecc248252562f59d7b7baf445cd5cdb2e3162 Mon Sep 17 00:00:00 2001 From: dolorous Date: Tue, 28 Jul 2009 03:14:18 +0000 Subject: Ensure that no demonic artefacts are named after good gods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10440 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/artefact.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/artefact.cc') diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc index 7ad0a94b53..f0f097e69b 100644 --- a/crawl-ref/source/artefact.cc +++ b/crawl-ref/source/artefact.cc @@ -120,6 +120,7 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item, else if (is_good_god(which_god) && (brand == SPWPN_DRAINING || brand == SPWPN_PAIN || brand == SPWPN_VAMPIRICISM + || is_demonic(item) || artefact_wpn_property(item, ARTP_CURSED) != 0)) { return (false); @@ -181,6 +182,7 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item, if (artefact_wpn_property(item, ARTP_MAGICAL_POWER)) return (false); + break; default: break; -- cgit v1.2.3-54-g00ecf