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>2008-11-27 14:00:53 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-27 14:00:53 +0000
commit826f76090eeb25a0ea8dbc0ff52968ce14732015 (patch)
tree8659c41c2db87f12605aff2817b42752bc8b343b /crawl-ref/source/tilepick.cc
parent12c403b697ccdab148c55ab2d634f3ee424c0cc0 (diff)
downloadcrawl-ref-826f76090eeb25a0ea8dbc0ff52968ce14732015.tar.gz
crawl-ref-826f76090eeb25a0ea8dbc0ff52968ce14732015.zip
* Add special tiles for the special runes (hells, demon lords).
* Really use Cocytus tiles for the Ice Cave. * Add a small lab vault containing the trapdoor spider because it just fits. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7655 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc33
1 files changed, 32 insertions, 1 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 65e58998f0..0d2abc90ee 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -1745,6 +1745,37 @@ static int _tileidx_corpse(int mon)
return TILE_ERROR;
}
+static int _tileidx_rune(const item_def &item)
+{
+ switch (item.plus)
+ {
+ case RUNE_DIS: return TILE_MISC_RUNE_DIS;
+ case RUNE_GEHENNA: return TILE_MISC_RUNE_GEHENNA;
+ case RUNE_COCYTUS: return TILE_MISC_RUNE_COCYTUS;
+ case RUNE_TARTARUS: return TILE_MISC_RUNE_TARTARUS;
+
+ // special pandemonium runes:
+ case RUNE_MNOLEG: return TILE_MISC_RUNE_MNOLEG;
+ case RUNE_LOM_LOBON: return TILE_MISC_RUNE_LOM_LOBON;
+ case RUNE_CEREBOV: return TILE_MISC_RUNE_CEREBOV;
+ case RUNE_GLOORX_VLOQ: return TILE_MISC_RUNE_GLOORX_VLOQ;
+
+ // All others use the default rune for now.
+ case RUNE_SLIME_PITS:
+ case RUNE_VAULTS:
+ case RUNE_SNAKE_PIT:
+ case RUNE_ELVEN_HALLS:
+ case RUNE_TOMB:
+ case RUNE_SWAMP:
+ case RUNE_SHOALS:
+
+ // pandemonium and abyss runes:
+ case RUNE_DEMONIC:
+ case RUNE_ABYSSAL:
+ default: return TILE_MISC_RUNE_OF_ZOT;
+ }
+}
+
static int _tileidx_misc(const item_def &item)
{
switch(item.sub_type)
@@ -1818,7 +1849,7 @@ static int _tileidx_misc(const item_def &item)
return ch;
}
case MISC_RUNE_OF_ZOT:
- return TILE_MISC_RUNE_OF_ZOT;
+ return _tileidx_rune(item);
}
return TILE_ERROR;