summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-01-04 15:27:37 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-01-04 15:42:43 +0100
commitad552ae6735e657e9e0a885d6d333d33f2b9d129 (patch)
tree726d9ec34bfb360608ebb6a106fc2579582d61e8 /crawl-ref/source/makeitem.h
parentf1fdc16676179c58bff565682afa989ee93e79b7 (diff)
downloadcrawl-ref-ad552ae6735e657e9e0a885d6d333d33f2b9d129.tar.gz
crawl-ref-ad552ae6735e657e9e0a885d6d333d33f2b9d129.zip
Try to avoid repeats when acquiring already seen weapons/armour.
Weapons: both type and brand is handled, separately. This means, once you've seen any lajatang, there is no more any bonus to get them -- you'll get 5 times as many quarterstaves, brand repeat protection comes only within the type. Armour: currently only brand is handled, type will have to be merged with the old code which suffered from no information about stash.
Diffstat (limited to 'crawl-ref/source/makeitem.h')
-rw-r--r--crawl-ref/source/makeitem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/makeitem.h b/crawl-ref/source/makeitem.h
index 8e16989c15..7e2d0091ba 100644
--- a/crawl-ref/source/makeitem.h
+++ b/crawl-ref/source/makeitem.h
@@ -37,6 +37,7 @@ bool is_armour_brand_ok(int type, int brand);
bool is_missile_brand_ok(int type, int brand);
bool got_curare_roll(const int item_level);
+void reroll_brand(item_def &item, int item_level);
#if DEBUG_DIAGNOSTICS || DEBUG_TESTS
void makeitem_tests();