summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-scan.cc
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2014-03-27 01:29:10 -0500
committergammafunk <gammafunk@gmail.com>2014-03-27 07:48:28 -0500
commite0468285053b71a733c7081e47e33efdf7324d10 (patch)
tree47e60b56eeb861b8cdf0ee00c7d2995c610d7b0f /crawl-ref/source/dbg-scan.cc
parent669f2b404c9b1f2b7c8d1d1ff58541cc97d93efd (diff)
downloadcrawl-ref-e0468285053b71a733c7081e47e33efdf7324d10.tar.gz
crawl-ref-e0468285053b71a733c7081e47e33efdf7324d10.zip
Let Orb run spawns generate in all non-abyss locations
Players have been picking up the Orb and entering a Zig only to discover that Orb spawns don't generate, thus depriving them of HUGE GUTS to RIP AND TEAR. Their complaints have been overwhelming, so now Orb run spawns generate in Pan and all portals. We don't generate the spawns in the Abyss, since the player can be banished there on the ascension, whereas entering other places with the Orb is voluntary. This commit also fixes the monster spawn rate when starting in the abyss with Lucy, which was being set to the orb run spawn rate instead of once per five turns as intended, and cleans up and documents some functions.
Diffstat (limited to 'crawl-ref/source/dbg-scan.cc')
-rw-r--r--crawl-ref/source/dbg-scan.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/dbg-scan.cc b/crawl-ref/source/dbg-scan.cc
index d075f11aa9..0120decb4d 100644
--- a/crawl-ref/source/dbg-scan.cc
+++ b/crawl-ref/source/dbg-scan.cc
@@ -641,6 +641,13 @@ void debug_mons_scan()
}
#endif
+/**
+ * Check the map for validity, generating a crash if not.
+ *
+ * This checks the loaded map to make sure all dungeon features and shops are
+ * valid, all branch exits are generated, and all portals generated at fixed
+ * levels in the Depths are actually present.
+ */
void check_map_validity()
{
#ifdef ASSERTS
@@ -692,12 +699,9 @@ void check_map_validity()
portal = DNGN_UNSEEN;
if (feat == exit || orig == exit)
exit = DNGN_UNSEEN;
-
-
-
}
- if (portal && you.char_direction != GDT_ASCENDING)
+ if (portal)
{
#ifdef DEBUG_DIAGNOSTICS
dump_map("missing_portal.map", true);