diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-05-23 12:15:05 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-05-23 12:15:05 +0200 |
commit | 25761fa387390a97a8b43db7598727788a934eb4 (patch) | |
tree | 59317f909028fe62a872228e5ff52200cdb917e9 /crawl-ref/source/skills.cc | |
parent | 1f9a0dbd752c19697b19a258c7f1757678a0e548 (diff) | |
download | crawl-ref-25761fa387390a97a8b43db7598727788a934eb4.tar.gz crawl-ref-25761fa387390a97a8b43db7598727788a934eb4.zip |
Don't spam the player about untrainable skills.
When all your skills are either maxxed or untrainable. Just print the message
once when the last trainable skill gets disabled.
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r-- | crawl-ref/source/skills.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index 1c38261959..fce499a9c2 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -412,7 +412,10 @@ static void _check_stop_train() } if (!skills.empty()) + { mpr("You stop training " + _skill_names(skills)); + check_selected_skills(); + } reset_training(); you.stop_train.clear(); @@ -425,8 +428,6 @@ void update_can_train() if (!you.start_train.empty()) _check_start_train(); - - check_selected_skills(); } bool training_restricted(skill_type sk) |