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-06-29 19:25:47 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-29 19:25:47 +0000
commit4dc30336a62ec7e8261253fc0b9c0674efda1555 (patch)
tree0e9a7c350fbd1725327f6c0a8bae934524d3e1f1 /crawl-ref/source/tilepick.cc
parent5060b8b617ae6987eb81ba9fde12ff65e9b2beb2 (diff)
downloadcrawl-ref-4dc30336a62ec7e8261253fc0b9c0674efda1555.tar.gz
crawl-ref-4dc30336a62ec7e8261253fc0b9c0674efda1555.zip
Add Eino's totally awesome Grum tile, as well as my own significantly less
awesome tile for Kirke. Thanks, Eino, you rock! Some modifications for Kirke: * reduce the size of Kirke's hog band * replace Summon Ice Beasts with another instance of the "porkalator" * give the porkalator a 33% chance of upgrading a nearby hostile monster to hog Also, open a new category in dc-mon.txt for transformations, so specific tiles are easier to add. The player's pig form now looks subtly different from the other hogs, some greater difference would be better, though. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10076 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc23
1 files changed, 13 insertions, 10 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index fe1674f94c..1d413ac86a 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -31,6 +31,7 @@ REVISION("$Rev$");
#include "tilemcache.h"
#include "tiledef-dngn.h"
#include "tiledef-unrand.h"
+#include "transfor.h"
#include "traps.h"
#include "travel.h"
#include "view.h"
@@ -995,6 +996,8 @@ int tileidx_monster_base(const monsters *mon, bool detected)
return TILEP_MONS_MARGERY;
case MONS_EUSTACHIO:
return TILEP_MONS_EUSTACHIO;
+ case MONS_KIRKE:
+ return TILEP_MONS_KIRKE;
// unique major demons ('&')
case MONS_MNOLEG:
@@ -2484,17 +2487,17 @@ int tileidx_player(int job)
int ch = TILEP_PLAYER;
// Handle shapechange first
- switch (you.symbol)
+ switch (you.attribute[ATTR_TRANSFORMATION])
{
- case 's': ch = TILEP_MONS_WOLF_SPIDER; break;
- case 'I': ch = TILEP_MONS_ICE_BEAST; break;
- case '8': ch = TILEP_MONS_STONE_GOLEM; break;
- case 'D': ch = TILEP_MONS_DRAGON; break;
- case 'L': ch = TILEP_MONS_LICH; break;
- case '#': ch = TILEP_MONS_VAPOUR; break;
- case 'S': ch = TILEP_MONS_LAVA_SNAKE; break;
- case 'b': ch = TILEP_MONS_GIANT_BAT; break;
- case 'h': ch = TILEP_MONS_HOG; break;
+ // animals
+ case TRAN_BAT: ch = TILEP_TRAN_BAT; break;
+ case TRAN_SPIDER: ch = TILEP_TRAN_SPIDER; break;
+ case TRAN_PIG: ch = TILEP_TRAN_PIG; break;
+ // non-animals
+ case TRAN_ICE_BEAST: ch = TILEP_TRAN_ICE_BEAST; break;
+ case TRAN_STATUE: ch = TILEP_TRAN_STATUE; break;
+ case TRAN_DRAGON: ch = TILEP_TRAN_DRAGON; break;
+ case TRAN_LICH: ch = TILEP_TRAN_LICH; break;
}
if (player_is_airborne())