summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-10-28 13:44:30 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-10-28 13:44:30 +0200
commita1465943dde96171124a2353b4ff0086c24a815d (patch)
treefacf606973ec8f14dd534866cf16d0806bd277e6 /crawl-ref/source/makeitem.h
parent4eff48b48af3b76240c95bbc18556333f9ea51e4 (diff)
downloadcrawl-ref-a1465943dde96171124a2353b4ff0086c24a815d.tar.gz
crawl-ref-a1465943dde96171124a2353b4ff0086c24a815d.zip
Somewhat prefer racial items during acquirement.
For example, items with 1/5 chance to be racial will match you around half of the time. Most of high-end gear can never get races, though, and neither currently can artefacts.
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 7a60cd3703..12457eb501 100644
--- a/crawl-ref/source/makeitem.h
+++ b/crawl-ref/source/makeitem.h
@@ -36,6 +36,7 @@ armour_type get_random_body_armour_type(int level);
armour_type get_random_armour_type(int item_level);
stave_type get_random_rod_type();
void item_set_appearance(item_def &item);
+void maybe_set_item_race(item_def &item, int allowed, int num_rolls = 1);
bool is_weapon_brand_ok(int type, int brand, bool strict);
bool is_armour_brand_ok(int type, int brand, bool strict);