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
W5Y5IK3XIAMAGOOK3ZOPH7HI5JE36TYS4KW6D7TTUSXSWSC2EUGQC
A5PQLNX3XFGSNBUEEI6DYWZZ3U2HZVEPZA6GTIT4ZEC4SHKJUENAC
Q3B3UVMYEVC4YJUPYVSNTR4DJH4E6J4JJDHZNT5LNOCHCPPMEMXAC
IJ6KN5MQLEB7DR7NW2AYQNCVBV5IUKECUSECUMEJWOBRNJBAXHCQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
UO2KXFB6IO2C5TFMMC2R4HAZBXZPBM6YSJJYRESX4RD2GMCRSM6AC
TXC3S7LAZKA77EIEYQEST57IZ6JYCDD4QQQMDK2GEX3IQXLPCGEAC
YDWBT7CZGY33CNDPF7S4LK7YULFMDUJAKIODKMGB2IYIWHF4SJWQC
S6ZETU2X3HBTKBDL2KTAMCNPMPGHEZO2JGMILIWETWC7XXRS5RYQC
C35MTVNINKCQBR7V52L7SLPO7455LDCQ5MBBXJFPQKJBF43JHRPQC
return
(fail == 100) ? "Useless" : // 0% success chance
(fail > 77) ? "Terrible" : // 0-5%
(fail > 71) ? "Cruddy" : // 5-10%
(fail > 64) ? "Bad" : // 10-20%
(fail > 59) ? "Very Poor" : // 20-30%
(fail > 50) ? "Poor" : // 30-50%
(fail > 40) ? "Fair" : // 50-70%
(fail > 35) ? "Good" : // 70-80%
(fail > 28) ? "Very Good" : // 80-90%
(fail > 22) ? "Great" : // 90-95%
(fail > 0) ? "Excellent" : // 95-100%
"Perfect"; // 100%
return (fail == 100) ? "Useless" : // 0% success chance
(fail > 77) ? "Terrible" : // 0-5%
(fail > 71) ? "Cruddy" : // 5-10%
(fail > 64) ? "Bad" : // 10-20%
(fail > 59) ? "Very Poor" : // 20-30%
(fail > 50) ? "Poor" : // 30-50%
(fail > 40) ? "Fair" : // 50-70%
(fail > 35) ? "Good" : // 70-80%
(fail > 28) ? "Very Good" : // 80-90%
(fail > 22) ? "Great" : // 90-95%
(fail > 0) ? "Excellent" // 95-100%
: "Perfect"; // 100%
#ifdef USE_TILE
else
{
const std::string schools = spell_schools_string(spell);
snprintf(info, INFO_SIZE,
"$Level: %d School%s: %s (%s)",
spell_difficulty(spell),
schools.find("/") != std::string::npos ? "s" : "",
schools.c_str(),
failure_rate_to_string(spell_fail(spell)));
description += info;
description += "$$Power : ";
description += spell_power_string(spell);
description += "$Range : ";
description += spell_range_string(spell);
description += "$Hunger: ";
description += spell_hunger_string(spell);
}
#endif