diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-04 20:05:13 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-04 20:11:25 +0100 |
commit | 99aa489a8d75c3c23395a61ae7a34c79fc37f7e0 (patch) | |
tree | 66ec5876f3e8141c84c68ecae59c2c406af628c3 /crawl-ref/source/artefact.cc | |
parent | 17571e019939a719da91fda064c12cc1542db98a (diff) | |
download | crawl-ref-99aa489a8d75c3c23395a61ae7a34c79fc37f7e0.tar.gz crawl-ref-99aa489a8d75c3c23395a61ae7a34c79fc37f7e0.zip |
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 :(
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r-- | crawl-ref/source/artefact.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |