diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-08-21 12:54:50 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-08-21 12:54:50 +0200 |
commit | 8d098fa93c7e5e76bb577edf6e71ce04f094a78e (patch) | |
tree | 3f4c997869a62e6f9e1d6aab414e84186ea06cf0 /crawl-ref/source/tilereg-abl.cc | |
parent | 837da21fdcb705bd884d546129dea8bed31a8470 (diff) | |
download | crawl-ref-8d098fa93c7e5e76bb577edf6e71ce04f094a78e.tar.gz crawl-ref-8d098fa93c7e5e76bb577edf6e71ce04f094a78e.zip |
Change the numbers in the ability panel to display MP cost.
This makes it consistent with the spell panel. The fail chance was bugged
anyway and it's also already displayed above the panel when mousing over.
Diffstat (limited to 'crawl-ref/source/tilereg-abl.cc')
-rw-r--r-- | crawl-ref/source/tilereg-abl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg-abl.cc b/crawl-ref/source/tilereg-abl.cc index eb87d3e228..8426ac83a0 100644 --- a/crawl-ref/source/tilereg-abl.cc +++ b/crawl-ref/source/tilereg-abl.cc @@ -205,7 +205,7 @@ static InventoryTile _tile_for_ability(ability_type ability) InventoryTile desc; desc.tile = tileidx_ability(ability); desc.idx = (int) ability; - desc.quantity = get_talent(ability, true).fail; + desc.quantity = get_ability_def(ability).mp_cost; if (!check_ability_possible(ability, true, true)) desc.flag |= TILEI_FLAG_INVALID; |