diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-26 21:40:26 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-03-27 01:50:16 +0100 |
commit | 8f39630395b90e92ee1780209166254ad94a72ab (patch) | |
tree | d3e6c0b27a393b68fce3a486440cf9553dddb38d /crawl-ref/source/skills.cc | |
parent | e3e6d37fb500b4eef5ecbd96036d7b357b7189ef (diff) | |
download | crawl-ref-8f39630395b90e92ee1780209166254ad94a72ab.tar.gz crawl-ref-8f39630395b90e92ee1780209166254ad94a72ab.zip |
Don't spam "You cannot train any new skill." over and over.
While this message cannot be totally ignored, as it warns about wasting xp,
usually it means you could potentially learn a spell you don't want just to
place xp in its skill. That firestorming conjurer may have better things
to do than lugging a weapon of yet another type, or learning a cold spell.
I made this message repeat itself:
* when you reload the game
* after exiting the 'm' screen
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r-- | crawl-ref/source/skills.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc index 70fb927ff3..c220fc9d14 100644 --- a/crawl-ref/source/skills.cc +++ b/crawl-ref/source/skills.cc @@ -614,8 +614,11 @@ bool check_selected_skills() return true; } - if (could_train) + if (could_train && !you.received_noskill_warning) + { + you.received_noskill_warning = true; mpr("You cannot train any new skill."); + } return false; // It's possible to have no selectable skills, if they are all untrainable |