diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 14:30:29 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-23 14:30:29 +0000 |
commit | 0af59f5d233f429a70df12e87993f7bda7de30a7 (patch) | |
tree | 37baf239dd33ab9ca033d170d60ef6665e08f612 /crawl-ref/source/tile2.cc | |
parent | 7b2c4078bbab85c54058384d35c55f1bed19ab21 (diff) | |
download | crawl-ref-0af59f5d233f429a70df12e87993f7bda7de30a7.tar.gz crawl-ref-0af59f5d233f429a70df12e87993f7bda7de30a7.zip |
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
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r-- | crawl-ref/source/tile2.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc index 7926afcc67..a428ed3157 100644 --- a/crawl-ref/source/tile2.cc +++ b/crawl-ref/source/tile2.cc @@ -746,6 +746,12 @@ void tcache_compose_normal(int ix, int *fg, int *bg) tcache_overlay(tc_img, ix, TILE_HEART, TREGION_0_NORMAL, &c, NULL); status_shift += 10; } + else if ((fg0 & TILE_FLAG_MAY_STAB) == TILE_FLAG_NEUTRAL) + { + // FIX ME: add real neutral marker! + tcache_overlay(tc_img, ix, TILE_NEW_STAIR, TREGION_0_NORMAL, &c, NULL); + status_shift += 10; + } else if ((fg0 & TILE_FLAG_MAY_STAB) == TILE_FLAG_STAB) { tcache_overlay(tc_img, ix, TILE_STAB_BRAND, TREGION_0_NORMAL, &c, NULL); @@ -757,7 +763,7 @@ void tcache_compose_normal(int ix, int *fg, int *bg) NULL); status_shift += 5; } - + if (fg0 & TILE_FLAG_POISON) { tcache_overlay(tc_img, ix, TILE_POISON, TREGION_0_NORMAL, &c, NULL, |