summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2013-10-31 22:40:51 +0100
committerRaphael Langella <raphael.langella@gmail.com>2013-10-31 22:40:51 +0100
commit88b655898e04702c84c277a01a5efa5198f9f44d (patch)
tree2053f8dcb47a2b350e32238c2c922e76c1166adc /crawl-ref/source/notes.cc
parent7cd3ab65b120e1a9f56a1449822911d93c862d9c (diff)
downloadcrawl-ref-88b655898e04702c84c277a01a5efa5198f9f44d.tar.gz
crawl-ref-88b655898e04702c84c277a01a5efa5198f9f44d.zip
Use RUNE_LOCK_DEPTH instead of a magic number.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 3779a66e73..d08bb06314 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -86,7 +86,7 @@ static bool _is_noteworthy_dlevel(unsigned short place)
return (lev == _dungeon_branch_depth(branch)
|| branch == BRANCH_MAIN_DUNGEON && (lev % 5) == 0
- || branch == BRANCH_MAIN_DUNGEON && lev == 15
+ || branch == BRANCH_MAIN_DUNGEON && lev == RUNE_LOCK_DEPTH + 1
|| branch != BRANCH_MAIN_DUNGEON && lev == 1);
}
@@ -434,7 +434,8 @@ void Note::check_milestone() const
mark_milestone(br == BRANCH_ZIGGURAT ? "zig.enter" : "br.enter",
"entered " + branch + ".", "parent");
}
- else if (dep == _dungeon_branch_depth(br) || dep == 15
+ else if (dep == _dungeon_branch_depth(br)
+ || dep == RUNE_LOCK_DEPTH + 1
|| br == BRANCH_ZIGGURAT)
{
string level = place_name(packed_place, true, true);
@@ -444,7 +445,7 @@ void Note::check_milestone() const
ostringstream branch_finale;
branch_finale << "reached " << level << ".";
mark_milestone(br == BRANCH_ZIGGURAT ? "zig" :
- dep == 15 ? "br.mid" : "br.end",
+ dep == RUNE_LOCK_DEPTH + 1 ? "br.mid" : "br.end",
branch_finale.str());
}
}