summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornagdon <m1nagdon@gmail.com>2014-08-16 12:09:44 +0200
committerJesse Luehrs <doy@tozt.net>2014-08-16 18:57:46 -0400
commit2625ad16af54042859690e2629dd1a1c46ec9d56 (patch)
treeb14fe3b55cafa68867bc42b84e3e18d57c5c6dce
parentc8494a13f39b015db5302ba12e035ffa2291583b (diff)
downloadcrawl-ref-2625ad16af54042859690e2629dd1a1c46ec9d56.tar.gz
crawl-ref-2625ad16af54042859690e2629dd1a1c46ec9d56.zip
Do not display "Spell assigned to 'a'." at game start
Now this is the first message for jobs with a pre-memorized spell (it is printed before "Welcome, [character name] the [race] [job]."). This message works well after the memorization messages, but is confusing and strange without them (and almost completely unneccessary).
-rw-r--r--crawl-ref/source/spl-util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 41272af34f..dda27711c0 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -281,7 +281,9 @@ bool add_spell_to_memory(spell_type spell)
break;
}
- mprf("Spell assigned to '%c'.", index_to_letter(j));
+ if (you.num_turns)
+ mprf("Spell assigned to '%c'.", index_to_letter(j));
+
you.spell_letter_table[j] = i;
you.spell_no++;