diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-11 00:32:47 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-11 00:32:47 +0200 |
commit | 8138ef583c4128be2662a59660b9cc2ac022a555 (patch) | |
tree | 9341cd70fd7575424dd4879de1b2acd0300bab84 /crawl-ref/source/notes.cc | |
parent | c55ee13b0e73a960e2a613f9c6f4d4d14f787e3d (diff) | |
download | crawl-ref-8138ef583c4128be2662a59660b9cc2ac022a555.tar.gz crawl-ref-8138ef583c4128be2662a59660b9cc2ac022a555.zip |
Make note_skill_levels default to what it used to, make it a simple list option.
No point in having it be a full list -- this way, it can be easily replaced,
and having to type the old values is not a chore. You can += or -= too if
you really want.
(Really, this option and friends should just receive an optioncide...)
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r-- | crawl-ref/source/notes.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index 78f1c8af02..68d59e7934 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -44,15 +44,6 @@ static int _real_god_power(int religion, int idx) return count; } -static bool _is_noteworthy_skill_level(int level) -{ - for (unsigned int i = 0; i < Options.note_skill_levels.size(); ++i) - if (level == Options.note_skill_levels[i]) - return true; - - return false; -} - static bool _is_highest_skill(int skill) { for (int i = 0; i < NUM_SKILLS; ++i) @@ -168,7 +159,7 @@ static bool _is_noteworthy(const Note& note) if (note.type == NOTE_GAIN_SKILL || note.type == NOTE_LOSE_SKILL) { if (Options.note_all_skill_levels - || _is_noteworthy_skill_level(note.second) + || note.second <= 27 && Options.note_skill_levels[note.second] || Options.note_skill_max && _is_highest_skill(note.first)) { return true; |