diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-24 07:10:46 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-24 07:10:46 +0000 |
commit | 2b81f6d336f3b8f9c4df969cb1d1a824b13bee9d (patch) | |
tree | 98e514fc2d1b776ec1fe7df9dab1e6a8d984527f /crawl-ref/source/player.cc | |
parent | 29b5d5c498daa84ea9d18eaaee3106ebc79dfa8d (diff) | |
download | crawl-ref-2b81f6d336f3b8f9c4df969cb1d1a824b13bee9d.tar.gz crawl-ref-2b81f6d336f3b8f9c4df969cb1d1a824b13bee9d.zip |
Move tutorial ending check from gain_exp() to level_change(), so that if
the player gains XL 7 via a potion of experience the tutorial will end.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9815 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 54d9f6dd30..624393f230 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2958,11 +2958,6 @@ void gain_exp( unsigned int exp_gained, unsigned int* actual_gain, level_change(); - // Increase tutorial time-out now that it's actually - // become useful for a longer time. - if (Options.tutorial_left && you.experience_level == 7) - tutorial_finished(); - if (actual_gain != NULL) *actual_gain = you.experience - old_exp; @@ -3567,6 +3562,11 @@ void level_change(bool skip_attribute_increase) } redraw_skill(you.your_name, player_title()); + + // Increase tutorial time-out now that it's actually + // become useful for a longer time. + if (Options.tutorial_left && you.experience_level >= 7) + tutorial_finished(); } // Here's a question for you: does the ordering of mods make a difference? |