summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-03-20 01:46:02 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-03-20 01:48:37 +0100
commit0c9c6ae09670b2f6c16934425f2c45343e52c958 (patch)
treef1423ec47453a0977222f537cb376293195aa6a4 /crawl-ref/source/directn.h
parente69d535a709e1f7e4bd4a500e7d7486667c9bd3c (diff)
downloadcrawl-ref-0c9c6ae09670b2f6c16934425f2c45343e52c958.tar.gz
crawl-ref-0c9c6ae09670b2f6c16934425f2c45343e52c958.zip
New Ashenzari passive ability: identify monster equipment.
When new monsters come into view, Ashenzari has a chance to warn you if the monster's equipment is branded. The chance is boundedness/3 (guaranteed when fully bounded) for each piece of equipment. Doesn't identify wands yet.
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r--crawl-ref/source/directn.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h
index 344edb7c91..9ff4bd8b1f 100644
--- a/crawl-ref/source/directn.h
+++ b/crawl-ref/source/directn.h
@@ -257,6 +257,14 @@ private:
};
+// Monster equipment description level.
+enum mons_equip_desc_level_type
+{
+ DESC_WEAPON,
+ DESC_FULL,
+ DESC_IDENTIFIED,
+};
+
#ifndef USE_TILE
char mlist_index_to_letter(int index);
#endif
@@ -276,7 +284,7 @@ void get_square_desc(const coord_def &c, describe_info &inf,
void describe_floor();
std::string get_monster_equipment_desc(const monster_info& mi,
- bool full_desc = true,
+ mons_equip_desc_level_type level = DESC_FULL,
description_level_type mondtype = DESC_CAP_A,
bool print_attitude = false);