summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-01-13 01:19:41 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-01-13 01:19:41 +0100
commit253d9973468723045300b5025e2de1e96e350a99 (patch)
tree01ab03a090bed0eb7012a2356790a57244c23e21 /crawl-ref
parent7bd75d9f1c4cc3dfcd5716a95d125d13e8b77ebf (diff)
downloadcrawl-ref-253d9973468723045300b5025e2de1e96e350a99.tar.gz
crawl-ref-253d9973468723045300b5025e2de1e96e350a99.zip
Set mimics' glyphs accordingly if the player redefined it for items.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/mon-util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index c2d0113921..0c47414cab 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -33,6 +33,7 @@
#include "stuff.h"
#include "env.h"
#include "terrain.h"
+#include "viewchar.h"
//jmf: moved from inside function
static FixedVector < int, NUM_MONSTERS > mon_entry;
@@ -247,6 +248,12 @@ void init_monster_symbols()
if (md.colour)
monster_symbols[md.type].colour = md.colour;
}
+
+ monster_symbols[MONS_GOLD_MIMIC].glyph = dchar_glyph(DCHAR_ITEM_GOLD);
+ monster_symbols[MONS_WEAPON_MIMIC].glyph = dchar_glyph(DCHAR_ITEM_WEAPON);
+ monster_symbols[MONS_ARMOUR_MIMIC].glyph = dchar_glyph(DCHAR_ITEM_ARMOUR);
+ monster_symbols[MONS_SCROLL_MIMIC].glyph = dchar_glyph(DCHAR_ITEM_SCROLL);
+ monster_symbols[MONS_POTION_MIMIC].glyph = dchar_glyph(DCHAR_ITEM_POTION);
}
const mon_resist_def &get_mons_class_resists(int mc)