summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-09 09:46:44 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-09 09:46:44 +0000
commitba15bdad80f10dc07f829c14fa6557652caa083f (patch)
tree1bb8d9faeda1deb15c0f877493955678ccab52bb /crawl-ref/source/tilepick.cc
parent6e70e966069acbd88760b988fc39638805f0ada2 (diff)
downloadcrawl-ref-ba15bdad80f10dc07f829c14fa6557652caa083f.tar.gz
crawl-ref-ba15bdad80f10dc07f829c14fa6557652caa083f.zip
* Add tile for Sonja.
* Display wielded weapons for zombies, Sonja, Ilsuiw and Saint Roka. * Reorder get_weapon_offset() to be more logical. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9394 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index ab9f67a587..36365ff298 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -914,7 +914,7 @@ static int _tileidx_monster_base(const monsters *mon, bool detected)
case MONS_ROXANNE:
return TILEP_MONS_ROXANNE;
case MONS_SONJA:
- return TILEP_MONS_KOBOLD; // TODO enne
+ return TILEP_MONS_SONJA;
case MONS_AZRAEL:
return TILEP_MONS_AZRAEL;
case MONS_ILSUIW:
@@ -4036,18 +4036,12 @@ void tile_init_flavour(const coord_def &gc)
env.tile_flv(gc).special = target - TILE_DNGN_CLOSED_DOOR;
}
else
- {
env.tile_flv(gc).special = 0;
- }
}
else if (grd(gc) == DNGN_SECRET_DOOR)
- {
env.tile_flv(gc).special = 0;
- }
else if (!env.tile_flv(gc).special)
- {
env.tile_flv(gc).special = random2(256);
- }
}
static bool _adjacent_target(dungeon_feature_type target, int x, int y)
@@ -4058,10 +4052,10 @@ static bool _adjacent_target(dungeon_feature_type target, int x, int y)
if (!map_bounds(x+i, y+j))
continue;
if (grd[x+i][y+j] == target)
- return true;
+ return (true);
}
- return false;
+ return (false);
}
void tile_floor_halo(dungeon_feature_type target, int tile)