summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 67d20c4a0e..1369f7ed76 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -43,6 +43,7 @@
#include "fight.h"
#include "files.h"
#include "food.h"
+#include "hiscores.h"
#include "it_use2.h"
#include "items.h"
#include "itemname.h"
@@ -783,6 +784,18 @@ void down_stairs( bool remove_stairs, int old_level, int force_stair )
return;
}
+#ifdef DGL_MILESTONES
+ if (!force_stair)
+ {
+ // Not entirely accurate - the player could die before
+ // reaching the Abyss.
+ if (grd[you.x_pos][you.y_pos] == DNGN_ENTER_ABYSS)
+ mark_milestone("abyss.enter", "entered the Abyss!");
+ else if (grd[you.x_pos][you.y_pos] == DNGN_EXIT_ABYSS)
+ mark_milestone("abyss.exit", "escaped from the Abyss!");
+ }
+#endif
+
if (stair_find == DNGN_ENTER_ZOT)
{
int num_runes = 0;