summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index dadf97d0e1..51a55d9074 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -1620,7 +1620,11 @@ void InventoryRegion::render()
std::string desc = "";
if (Options.tile_display_spells)
{
- desc = spell_title((spell_type) idx);
+ const spell_type spell = (spell_type) idx;
+ snprintf(info, INFO_SIZE, "%d MP %s (%s)",
+ spell_difficulty(spell), spell_title(spell),
+ failure_rate_to_string(spell_fail(spell)));
+ desc = info;
}
else if (floor && is_valid_item(mitm[idx]))
desc = mitm[idx].name(DESC_PLAIN);