summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-03 15:51:49 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-03 15:51:49 +0000
commitcb9d4a1c331dbd0439a21a00e4573f315b5ce507 (patch)
tree08230998d529094c32eb1011cf759d3fea5fd987 /crawl-ref
parent09fa4ab8c049f2f8eefa0329a0b30abcdc9ce695 (diff)
downloadcrawl-ref-cb9d4a1c331dbd0439a21a00e4573f315b5ce507.tar.gz
crawl-ref-cb9d4a1c331dbd0439a21a00e4573f315b5ce507.zip
Multiple labyrinth entrances are separately noteworthy.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@545 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/notes.cc17
1 files changed, 12 insertions, 5 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index a3a9d40c10..50221376aa 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -161,17 +161,24 @@ static bool is_noteworthy( const Note& note ) {
/* skills are noteworthy if in the skill value list or if
it's a new maximal skill (depending on options) */
- if ( note.type == NOTE_GAIN_SKILL ) {
+ if ( note.type == NOTE_GAIN_SKILL )
+ {
if ( is_noteworthy_skill_level(note.second) )
return true;
if ( Options.note_skill_max && is_highest_skill(note.first) )
return true;
return false;
}
-
- if ( note.type == NOTE_DUNGEON_LEVEL_CHANGE &&
- !is_noteworthy_dlevel(note.packed_place) )
- return false;
+
+ if ( note.type == NOTE_DUNGEON_LEVEL_CHANGE )
+ {
+ if ( !is_noteworthy_dlevel(note.packed_place) )
+ return false;
+ // labyrinths are always interesting
+ if ( (note.packed_place & 0xFF) == 0xFF &&
+ (note.packed_place >> 8) == LEVEL_LABYRINTH )
+ return true;
+ }
/* Learning a spell is always noteworthy if note_all_spells is set */
if ( note.type == NOTE_LEARN_SPELL && Options.note_all_spells )