diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 11:35:18 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 12:19:59 +0100 |
commit | 94efa11e1613a3328378a2e1f9831f144490d434 (patch) | |
tree | 251c872158ffa4be53f8c0a0b52007b033d7820b /crawl-ref/source/mon-util.h | |
parent | 975e3a88520ca52bd5f8fcfb8ecda505d823a561 (diff) | |
download | crawl-ref-94efa11e1613a3328378a2e1f9831f144490d434.tar.gz crawl-ref-94efa11e1613a3328378a2e1f9831f144490d434.zip |
Fix information leakage in detect creatures.
Also fix tiles giving more information than console version.
There's now mons_detected_base, which assigns a base monster
type to every monster type based on the default displayed
glyph. It just takes the first entry for a given glyph
based on the mon-data.h order, so this may need tweaking
in some cases.
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index df57a774d7..aab07da8c6 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -636,6 +636,7 @@ bool mons_eats_corpses(const monsters *mon); bool mons_eats_food(const monsters *mon); bool mons_has_lifeforce(const monsters *mon); monster_type mons_genus(int mc); +monster_type mons_detected_base(monster_type mt); monster_type mons_species(int mc); bool mons_looks_stabbable(const monsters *m); |