diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-10 21:34:21 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-10 21:34:21 +0000 |
commit | af7fe6ad37f466a8e926cc29765197f5b0e7224f (patch) | |
tree | f2362740ab56fec3d7f6018688c79221e9974615 /crawl-ref/source/tilesdl.cc | |
parent | 1d23ad9eae6203fcabc6b1f9a933174bc907f2a9 (diff) | |
download | crawl-ref-af7fe6ad37f466a8e926cc29765197f5b0e7224f.tar.gz crawl-ref-af7fe6ad37f466a8e926cc29765197f5b0e7224f.zip |
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
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r-- | crawl-ref/source/tilesdl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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. |