available spell levels, the number of spell books which can't be read from, and the number of spells which can't be memorized due to player's species.
Make the spell memorization confirmation prompt show the number of spell levels to be consumed by memorization, and the number which will be left after memorization.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10042 c06c8d41-db1a-0410-9941-cceddc491573
EZOLOYGEKWHZKTETREC3LK3RZFRBJJHR6O4EQT2WOZYXLFYPDXVQC
I6BG7QKQHT7OMBMSD5LN6ILPSZOT6RM4RY3VB2HFUXZMWQTZPW2AC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
4NNN5LKBZLDXMDN2322PBG7WFHF4TWOEMVODSO7BXXCM3AZKQN4QC
DO6W27HYFNVFMX7FSGG4RCX5UW32ORCVYZBQYPCUD4VCHMA4LFFQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
C6SU6CPHYLFEJTVDX4Q5VBL4GCCKZNTI3TEB3YSFG2RYELSQGA2QC
snprintf(info, INFO_SIZE, "Memorise %s?", spell_title(specspell));
snprintf(info, INFO_SIZE,
"Memorise %s, consuming %d spell level%s and leaving %d?",
spell_title(specspell), spell_levels_required(specspell),
spell_levels_required(specspell) > 1 ? "s" : "",
player_spell_levels() - spell_levels_required(specspell));