From 0af59f5d233f429a70df12e87993f7bda7de30a7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 23 Mar 2008 14:30:29 +0000 Subject: Introduce a temporary neutral brand for tiles because it was driving me nuts when testing Ely's pacifying. (Currently only inappropriately reuses TILE_NEW_STAIR, which will have to be replaced with something more distinctive some time.) Also add an option for colouring neutrals on the minimap (defaults to red, like hostiles) and allow secondary item use by Ctrl-L-clicking on items in inventory (firing weapons, unwielding rods, etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3830 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tile1.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/tile1.cc') diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc index 99e1e6fd67..9284b1f0bf 100644 --- a/crawl-ref/source/tile1.cc +++ b/crawl-ref/source/tile1.cc @@ -816,6 +816,10 @@ int tileidx_monster(int mon_idx, bool detected) { ch |= TILE_FLAG_PET; } + else if (mons_neutral(mons)) + { + ch |= TILE_FLAG_NEUTRAL; + } else if (mons_looks_stabbable(mons)) { ch |= TILE_FLAG_STAB; @@ -824,7 +828,6 @@ int tileidx_monster(int mon_idx, bool detected) { ch |= TILE_FLAG_MAY_STAB; } - return ch; } -- cgit v1.2.3-54-g00ecf