summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-05-02 14:07:10 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-05-02 14:07:10 +0200
commit09a4d7519d08d2ca85607a8a5270f7d6c5e9a1c4 (patch)
tree6a3630f384cab18ad996803b8156a7355857a448 /crawl-ref/source/notes.cc
parentf06d56148678466e48da20e4b63d6b7319af0327 (diff)
downloadcrawl-ref-09a4d7519d08d2ca85607a8a5270f7d6c5e9a1c4.tar.gz
crawl-ref-09a4d7519d08d2ca85607a8a5270f7d6c5e9a1c4.zip
Optioncide: note_all_spells (always on).
I see no reason why someone would note only spells of higher level than any currently memorized. With Selective Amnesia gone, learning spell can't be the cause of significant spam -- and even in the past, it'd be one only if someone heavily abused SA to regain 5MP per 9th level spell.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index dc41edf551..ce71e439fb 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -110,6 +110,7 @@ static bool _is_noteworthy(const Note& note)
{
// Always noteworthy.
if (note.type == NOTE_XP_LEVEL_CHANGE
+ || note.type == NOTE_LEARN_SPELL
|| note.type == NOTE_GET_GOD
|| note.type == NOTE_GOD_GIFT
|| note.type == NOTE_GET_MUTATION
@@ -179,10 +180,6 @@ static bool _is_noteworthy(const Note& note)
if (note.type == NOTE_DUNGEON_LEVEL_CHANGE)
return _is_noteworthy_dlevel(note.packed_place);
- // Learning a spell is always noteworthy if note_all_spells is set.
- if (note.type == NOTE_LEARN_SPELL && Options.note_all_spells)
- return (true);
-
for (unsigned i = 0; i < note_list.size(); ++i)
{
if (note_list[i].type != note.type)
@@ -191,14 +188,6 @@ static bool _is_noteworthy(const Note& note)
const Note& rnote(note_list[i]);
switch (note.type)
{
- case NOTE_LEARN_SPELL:
- if (spell_difficulty(static_cast<spell_type>(rnote.first))
- >= spell_difficulty(static_cast<spell_type>(note.first)))
- {
- return (false);
- }
- break;
-
case NOTE_GOD_POWER:
if (rnote.first == note.first && rnote.second == note.second)
return (false);