summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tile1.cc')
-rw-r--r--crawl-ref/source/tile1.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc
index a95d7a9d41..52337dbee7 100644
--- a/crawl-ref/source/tile1.cc
+++ b/crawl-ref/source/tile1.cc
@@ -3625,6 +3625,15 @@ void tile_place_monster(int gx, int gy, int idx, bool foreground)
const monsters *mon = &menv[idx];
if (!mons_is_known_mimic(mon))
{
+ // if necessary add item brand
+ if (igrd[gx][gy] != NON_ITEM)
+ {
+ if (foreground)
+ t |= TILE_FLAG_S_UNDER;
+ else
+ t0 |= TILE_FLAG_S_UNDER;
+ }
+
item_def item;
get_mimic_item( mon, item );
if (item_needs_autopickup(item))
@@ -3636,6 +3645,17 @@ void tile_place_monster(int gx, int gy, int idx, bool foreground)
}
}
}
+ else if (menv[idx].holiness() == MH_PLANT)
+ {
+ // if necessary add item brand
+ if (igrd[gx][gy] != NON_ITEM)
+ {
+ if (foreground)
+ t |= TILE_FLAG_S_UNDER;
+ else
+ t0 |= TILE_FLAG_S_UNDER;
+ }
+ }
else if (menv[idx].type >= MONS_DRACONIAN &&
menv[idx].type <= MONS_DRACONIAN_SCORCHER)
{