diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-08-22 17:01:31 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-08-22 17:01:31 +0200 |
commit | 0a92fda7af305a6c2d9c71bf0adbb1b52dc6a9df (patch) | |
tree | eff629cd1074ef5a7853b68870845637791a3e92 /crawl-ref/source/tilereg-spl.cc | |
parent | ca6d786a1ed4bdc176348c3ac17b95911fab3982 (diff) | |
download | crawl-ref-0a92fda7af305a6c2d9c71bf0adbb1b52dc6a9df.tar.gz crawl-ref-0a92fda7af305a6c2d9c71bf0adbb1b52dc6a9df.zip |
Fix spell panel ignoring Vehumet MP discount (#4794).
Diffstat (limited to 'crawl-ref/source/tilereg-spl.cc')
-rw-r--r-- | crawl-ref/source/tilereg-spl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-spl.cc b/crawl-ref/source/tilereg-spl.cc index 30a54aec89..20dcf5304c 100644 --- a/crawl-ref/source/tilereg-spl.cc +++ b/crawl-ref/source/tilereg-spl.cc @@ -45,7 +45,7 @@ void SpellRegion::draw_tag() const spell_type spell = (spell_type) idx; char* failure = failure_rate_to_string(spell_fail(spell)); std::string desc = make_stringf("%d MP %s (%s)", - spell_difficulty(spell), + spell_mana(spell), spell_title(spell), failure); free(failure); @@ -216,7 +216,7 @@ void SpellRegion::update() InventoryTile desc; desc.tile = tileidx_spell(spell); desc.idx = (int) spell; - desc.quantity = spell_difficulty(spell); + desc.quantity = spell_mana(spell); std::string temp; if (is_prevented_teleport(spell) |