From 826f76090eeb25a0ea8dbc0ff52968ce14732015 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 27 Nov 2008 14:00:53 +0000 Subject: * 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 --- crawl-ref/source/tilepick.cc | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/tilepick.cc') 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; -- cgit v1.2.3-54-g00ecf