From 99aa489a8d75c3c23395a61ae7a34c79fc37f7e0 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 4 Nov 2009 20:05:13 +0100 Subject: Allow specifying "any weapon ego:XXX", "... missile", "... armour". This will select an item type that can have brand XXX. This requires a large list of allowable type/brand combinations in the code :( --- 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 306b900267..4d4cd828a2 100644 --- a/crawl-ref/source/artefact.cc +++ b/crawl-ref/source/artefact.cc @@ -827,6 +827,8 @@ void static _get_randart_properties(const item_def &item, proprt[ARTP_BRAND] = SPWPN_NORMAL; else power_level++; + + ASSERT(is_weapon_brand_ok(atype, proprt[ARTP_BRAND])); } if (!one_chance_in(5)) -- cgit v1.2.3-54-g00ecf