From 94efa11e1613a3328378a2e1f9831f144490d434 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 16 Nov 2009 11:35:18 +0100 Subject: 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. --- crawl-ref/source/mon-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/mon-util.h') 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); -- cgit v1.2.3-54-g00ecf