diff options
author | elliptic <hyperelliptical@gmail.com> | 2012-01-08 13:12:51 -0500 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2012-01-09 18:27:30 -0500 |
commit | 32ee2eccaff52121fda2ea132c358c93c8db5895 (patch) | |
tree | 08add66ed8ff1652dc3254e135a4bd27c9b8d213 /crawl-ref/source/notes.cc | |
parent | f4729ae69a4a1f257d5a430b03a458d62485fd32 (diff) | |
download | crawl-ref-32ee2eccaff52121fda2ea132c358c93c8db5895.tar.gz crawl-ref-32ee2eccaff52121fda2ea132c358c93c8db5895.zip |
Milestones for your first time entering Pandemonium and reaching D:14.
Pandemonium uses br.enter, D:14 uses br.mid. The D:14 milestone shouldn't be
announced by bots; its main purpose is to permit tracking the "rune lock"
conduct.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r-- | crawl-ref/source/notes.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index bf9f748c4e..b85ab00dee 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -90,6 +90,7 @@ static bool _is_noteworthy_dlevel(unsigned short place) if (lev == _dungeon_branch_depth(branch) || branch == BRANCH_MAIN_DUNGEON && (lev % 5) == 0 + || branch == BRANCH_MAIN_DUNGEON && lev == 14 || branch != BRANCH_MAIN_DUNGEON && lev == 1) { return (true); @@ -452,6 +453,11 @@ void Note::check_milestone() const if (type == NOTE_DUNGEON_LEVEL_CHANGE) { + if (place_type(packed_place) == LEVEL_PANDEMONIUM) + { + mark_milestone("br.enter", "entered Pandemonium."); + return; + } const int br = place_branch(packed_place), dep = place_depth(packed_place); @@ -463,7 +469,7 @@ void Note::check_milestone() const if (dep == 1) mark_milestone("br.enter", "entered " + branch + ".", true); - else if (dep == _dungeon_branch_depth(br)) + else if (dep == _dungeon_branch_depth(br) || dep == 14) { std::string level = place_name(packed_place, true, true); if (level.find("Level ") == 0) @@ -471,7 +477,7 @@ void Note::check_milestone() const std::ostringstream branch_finale; branch_finale << "reached " << level << "."; - mark_milestone("br.end", branch_finale.str()); + mark_milestone(dep == 14 ? "br.mid" : "br.end", branch_finale.str()); } } } |