diff options
author | BlackSheep <chris.terenzi@gmail.com> | 2013-04-14 12:05:36 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-08-10 04:28:56 -0400 |
commit | ba29f88f4921d67216d2219ee7fc41b005e597c5 (patch) | |
tree | 57a32c36fb15251e606bacafbff22fb61551d15f /crawl-ref/source/spl-selfench.cc | |
parent | b8a0f35253dacce58825d5b1536a45bc47dfcc37 (diff) | |
download | crawl-ref-ba29f88f4921d67216d2219ee7fc41b005e597c5.tar.gz crawl-ref-ba29f88f4921d67216d2219ee7fc41b005e597c5.zip |
Make scrolls of amnesia display the spell list immediately instead of just a message prompt.
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r-- | crawl-ref/source/spl-selfench.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc index 2fb63c9ebe..b3990701f1 100644 --- a/crawl-ref/source/spl-selfench.cc +++ b/crawl-ref/source/spl-selfench.cc @@ -277,11 +277,12 @@ int cast_selective_amnesia(string *pre_msg) int slot; // Pick a spell to forget. + mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT); + keyin = list_spells(false, false, false); + redraw_screen(); + while (true) { - mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT); - keyin = get_ch(); - if (key_is_escape(keyin)) { canned_msg(MSG_OK); @@ -297,6 +298,7 @@ int cast_selective_amnesia(string *pre_msg) if (!isaalpha(keyin)) { mesclr(); + keyin = get_ch(); continue; } @@ -304,7 +306,11 @@ int cast_selective_amnesia(string *pre_msg) slot = get_spell_slot_by_letter(keyin); if (spell == SPELL_NO_SPELL) + { mpr("You don't know that spell."); + mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT); + keyin = get_ch(); + } else break; } |