From 8f662453f566222479ffcf856d70581c7c131c03 Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Sat, 9 Jan 2010 14:12:15 +0100 Subject: Tiles: Add icons for poisonous/mutagenic/... chunks or corpses. I'm not sure how to visualize contaminated chunks, so they haven't got an icon yet (maybe use coagulated blood?) Also, I've opted to only show the icons for rotten chunks if the character is capable of eating them. Otherwise, them being rotten is all that's of interest to the player. --- crawl-ref/source/invent.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/invent.cc') diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 887fbd436c..26b882755c 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -553,9 +553,18 @@ bool InvEntry::get_tiles(std::vector& tileset) const } } } - int brand = tile_known_weapon_brand(*item); - if (brand) - tileset.push_back(tile_def(brand, TEX_DEFAULT)); + if (item->base_type == OBJ_WEAPONS || item->base_type == OBJ_MISSILES) + { + int brand = tile_known_weapon_brand(*item); + if (brand) + tileset.push_back(tile_def(brand, TEX_DEFAULT)); + } + else if (item->base_type == OBJ_CORPSES) + { + int brand = tile_corpse_brand(*item); + if (brand) + tileset.push_back(tile_def(brand, TEX_DEFAULT)); + } return (true); } -- cgit v1.2.3-54-g00ecf