From cdb351ec5d687f44623cc402e371825f98599bf7 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sun, 10 Feb 2008 20:44:52 +0000 Subject: Adding icons (from Denzi) for identified staves and rods, now that identical staff types share the same description. Removing old Nethack item tiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3425 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tile1.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/tile1.cc') diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc index cdf12cdf45..8a45e437cc 100644 --- a/crawl-ref/source/tile1.cc +++ b/crawl-ref/source/tile1.cc @@ -1611,12 +1611,13 @@ int tileidx_item(const item_def &item) return TILE_BOOK_PAPYRUS; case OBJ_STAVES: -/* if (id[ IDTYPE_STAVES ][type] == ID_KNOWN_TYPE - || (item.flags &ISFLAG_KNOW_TYPE )) + || (item.flags & ISFLAG_KNOW_TYPE )) + { return TILE_STAFF_WIZARDRY + type; -*/ - // try to return an appropriate tile + } + // Try to return an appropriate tile + // Note: We really need separate rod and stave tiles... return TILE_STAFF_OFFSET + (special / 4) % 10; case OBJ_CORPSES: -- cgit v1.2.3-54-g00ecf