From af7fe6ad37f466a8e926cc29765197f5b0e7224f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 10 Sep 2009 21:34:21 +0000 Subject: Display spell cost, success chance, schools, power, range, and hunger in the new tiles display (in the title, quantity, mouse-over description, and right-click description). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10649 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilesdl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tilesdl.cc') diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index a3c72e7de2..4343718816 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -1445,8 +1445,9 @@ void TilesFramework::update_spells() InventoryTile desc; // desc.tile = tileidx_spell(item); - desc.tile = TILE_ERROR; - desc.idx = (int) spell; + desc.tile = TILE_ERROR; + desc.idx = (int) spell; + desc.quantity = spell_difficulty(spell); // If an equipped artefact prevents teleportation, the following spells // cannot be cast. -- cgit v1.2.3-54-g00ecf