summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile1.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-13 20:34:46 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-13 20:34:46 +0000
commitdf31ea9fdcfedf252e62f6bf0c5cff53df4b93d0 (patch)
tree2d7966f0f0eac61f1c17fa7182aa2ea22490a98f /crawl-ref/source/tile1.cc
parent0962c7818135807861f1f8d659a952a8ea8f4ddb (diff)
downloadcrawl-ref-df31ea9fdcfedf252e62f6bf0c5cff53df4b93d0.tar.gz
crawl-ref-df31ea9fdcfedf252e62f6bf0c5cff53df4b93d0.zip
Mixed commit of small additions/changes.
FR 1870139: output "Tele" among enchantment abbrevs when "about to teleport" FR 1834016: print item slots along with rotting message (I added an option for this as I personally don't need this.) Gods: * Add ^ line for Zin's mutation protection. * Modify protection from harm adjectives in ^ screen to make difference between Ely and Zin/TSO more obvious. Tiles: Bug 1870238: Show mimics to be "autopickuable" (green frame). * Smarter handling of L-click actions in inventory. * code clean-up git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3269 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile1.cc')
-rw-r--r--crawl-ref/source/tile1.cc23
1 files changed, 20 insertions, 3 deletions
diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc
index 4a9e999c12..7e5f51a304 100644
--- a/crawl-ref/source/tile1.cc
+++ b/crawl-ref/source/tile1.cc
@@ -3583,7 +3583,7 @@ void tile_place_monster(int gx, int gy, int idx, bool foreground)
{
return;
}
-
+
const coord_def gc(gx, gy);
const coord_def ep = view2show(grid2view(gc));
@@ -3592,8 +3592,25 @@ void tile_place_monster(int gx, int gy, int idx, bool foreground)
int flag = t & (~TILE_FLAG_MASK);
int mon_wep = menv[idx].inv[MSLOT_WEAPON];
- if (menv[idx].type >= MONS_DRACONIAN &&
- menv[idx].type <= MONS_DRACONIAN_SCORCHER)
+ if (menv[idx].type >= MONS_GOLD_MIMIC &&
+ menv[idx].type <= MONS_POTION_MIMIC)
+ {
+ const monsters *mon = &menv[idx];
+ if (!mons_is_known_mimic(mon))
+ {
+ item_def item;
+ get_mimic_item( mon, item );
+ if (item_needs_autopickup(item))
+ {
+ if (foreground)
+ env.tile_bg[ep.x-1][ep.y-1] |= TILE_FLAG_CURSOR3;
+ else
+ env.tile_bk_bg[gx][gy] |= TILE_FLAG_CURSOR3;
+ }
+ }
+ }
+ else if (menv[idx].type >= MONS_DRACONIAN &&
+ menv[idx].type <= MONS_DRACONIAN_SCORCHER)
{
int race = draco_subspecies(&menv[idx]);
int cls = menv[idx].type;