diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-14 14:40:44 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-14 14:40:44 +0000 |
commit | 85d6ca986365df62d39e76ded8065a0496089205 (patch) | |
tree | 1cf816c5c84592ab25761ba7ad4635f738eb15bb /crawl-ref/source/tutorial.cc | |
parent | c878d68b32a75909ef98ca6f8eb4b55ba4d6f1cf (diff) | |
download | crawl-ref-85d6ca986365df62d39e76ded8065a0496089205.tar.gz crawl-ref-85d6ca986365df62d39e76ded8065a0496089205.zip |
FR 1969858: Store message history across saves.
Spin-off from BR 2085502: Don't autoswap weapons if a monster turns
invisible.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6924 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index 32739407eb..536d07fc53 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -140,7 +140,8 @@ bool pick_tutorial() { char keyn = c_getch(); - if (keyn == '*' || keyn == '+') + // Random choice. + if (keyn == '*' || keyn == '+' || keyn == '!' || keyn == '#') keyn = 'a' + random2(TUT_TYPES_NUM); // Choose character for tutorial game and set starting values. @@ -156,18 +157,21 @@ bool pick_tutorial() Options.tutorial_events.init(true); Options.tutorial_left = TUT_EVENTS_NUM; - // Store whether explore, stash search or travelling was used. - Options.tut_explored = true; - Options.tut_stashes = true; - Options.tut_travel = true; - // Used to compare which fighting means was used most often. - // XXX: Not stored across save games. + // XXX: This gets reset with every save, which seems odd. + // On the other hand, it's precisely between saves that + // players are most likely to forget these. Options.tut_spell_counter = 0; Options.tut_throw_counter = 0; Options.tut_melee_counter = 0; Options.tut_berserk_counter = 0; + // Store whether explore, stash search or travelling was used. + // XXX: Also not stored across save games. + Options.tut_explored = true; + Options.tut_stashes = true; + Options.tut_travel = true; + // For occasional healing reminders. Options.tut_last_healed = 0; @@ -2654,7 +2658,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc) tiles.place_cursor(CURSOR_TUTORIAL, gc); if (mgrd(gc) != NON_MONSTER) { - tiles.add_text_tag(TAG_TUTORIAL, menv[mgrd(gc)].name(DESC_CAP_A), + tiles.add_text_tag(TAG_TUTORIAL, menv[mgrd(gc)].name(DESC_CAP_A), gc); } #endif |