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/tilereg.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/tilereg.cc') 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); -- cgit v1.2.3-54-g00ecf