diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-06-22 15:48:07 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-06-23 00:21:23 +0200 |
commit | 9c8c2b421a17062f8d72e93f0f32a41ace4af54a (patch) | |
tree | 4bf1ec9c7c759024323d3700276ff1dbd2b0badd /crawl-ref/source/makeitem.h | |
parent | 1d099d6524d8abf1f5783aa41f116fc22fd4f6c6 (diff) | |
download | crawl-ref-9c8c2b421a17062f8d72e93f0f32a41ace4af54a.tar.gz crawl-ref-9c8c2b421a17062f8d72e93f0f32a41ace4af54a.zip |
Allow varying strictness of brand checks.
Usually, we want to be sure no rocks of returning, etc, get generated,
but special vaults may use them.
Diffstat (limited to 'crawl-ref/source/makeitem.h')
-rw-r--r-- | crawl-ref/source/makeitem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/makeitem.h b/crawl-ref/source/makeitem.h index cf81e1fba7..46c6ea5a0a 100644 --- a/crawl-ref/source/makeitem.h +++ b/crawl-ref/source/makeitem.h @@ -40,9 +40,9 @@ armour_type get_random_body_armour_type(int level); armour_type get_random_armour_type(int item_level); void item_set_appearance(item_def &item); -bool is_weapon_brand_ok(int type, int brand); -bool is_armour_brand_ok(int type, int brand); -bool is_missile_brand_ok(int type, int brand); +bool is_weapon_brand_ok(int type, int brand, bool strict); +bool is_armour_brand_ok(int type, int brand, bool strict); +bool is_missile_brand_ok(int type, int brand, bool strict); bool got_curare_roll(const int item_level); void reroll_brand(item_def &item, int item_level); |