summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-23 16:13:12 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-23 16:13:12 +0000
commitea9a4edf153660b7feb11b085dd308d4e3b84b60 (patch)
tree440eca78f5d30e3e41134bd79dafcad4b896172a
parentb92e79306fcaad443184d8526197272f26e091a8 (diff)
downloadcrawl-ref-ea9a4edf153660b7feb11b085dd308d4e3b84b60.tar.gz
crawl-ref-ea9a4edf153660b7feb11b085dd308d4e3b84b60.zip
Stationary monsters on top of items are now branded with ITEM_HEAP.
Erik, you were saying...? (Maybe we should make this an option?) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1352 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/view.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 47b6aed590..1ecead7205 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -295,7 +295,7 @@ static void get_symbol( int x, int y,
if (object < NUM_FEATURES)
{
- *ch = Feature[object].symbol;
+ *ch = Feature[object].symbol;
// Don't clobber with BLACK, because the colour should be already set.
if (Feature[object].colour != BLACK)
@@ -529,6 +529,13 @@ static int get_mons_colour(const monsters *mons)
{
col |= COLFLAG_MAYSTAB;
}
+ else if (Options.heap_brand != CHATTR_NORMAL
+ && mons_is_stationary(mons)
+ && in_bounds(mons->x, mons->y)
+ && igrd[mons->x][mons->y] != NON_ITEM)
+ {
+ col |= COLFLAG_ITEM_HEAP;
+ }
return (col);
}