From 2b827ffacb4bca4e856adb9b3459571be7637250 Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Sat, 24 Oct 2009 17:25:52 -0700 Subject: Force all randart weapons to have some brand. --- crawl-ref/source/artefact.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/artefact.cc') diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc index 88a00138cd..ca3110cd8a 100644 --- a/crawl-ref/source/artefact.cc +++ b/crawl-ref/source/artefact.cc @@ -1868,6 +1868,10 @@ bool randart_is_bad( const item_def &item, artefact_properties_t &proprt ) if (_artefact_num_props( proprt ) == 0) return (true); + if ((item.base_type == OBJ_WEAPONS) + && (proprt[ARTP_BRAND] == SPWPN_NORMAL)) + return (true); + return (_randart_is_redundant( item, proprt ) || _randart_is_conflicting( item, proprt )); } -- cgit v1.2.3-54-g00ecf