summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-07 18:09:28 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-07 18:09:28 +0100
commit87da8db7d1e1a45d9aadaf6b4bc6f07ae5c822e0 (patch)
treed0d7cc82b410d28314d0aa1b0fe38b2d6305d4f0 /crawl-ref/source/tilereg.cc
parente0d592b0a5e032d7d35551907c4af69014e48b10 (diff)
downloadcrawl-ref-87da8db7d1e1a45d9aadaf6b4bc6f07ae5c822e0.tar.gz
crawl-ref-87da8db7d1e1a45d9aadaf6b4bc6f07ae5c822e0.zip
Add purge's tile for berserk monsters. Very neat, thanks!
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index a24675c708..c908bc2d06 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -832,8 +832,14 @@ void DungeonRegion::pack_foreground(unsigned int bg, unsigned int fg, int x, int
if (fg & TILE_FLAG_S_UNDER)
m_buf_main.add(TILE_SOMETHING_UNDER, x, y);
- // Pet mark
int status_shift = 0;
+ if (fg & TILE_FLAG_BERSERK)
+ {
+ m_buf_main.add(TILE_BERSERK, x, y);
+ status_shift += 10;
+ }
+
+ // Pet mark
if (fg & TILE_FLAG_PET)
{
m_buf_main.add(TILE_HEART, x, y);