diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 20:59:26 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 20:59:26 +0000 |
commit | ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d (patch) | |
tree | 50445a3689cc911f1d28ea535a2a5a049b314e71 /crawl-ref/source/acr.cc | |
parent | eb6bb5f5ee6d07cdfb1b3239b155e8b252e98ae6 (diff) | |
download | crawl-ref-ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d.tar.gz crawl-ref-ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d.zip |
Added debugging code to generate multiple dungeons (all branches and levels)
and gather statistics on maps used and Lua errors encountered.
To use it, run "crawl -mapstat" with a full-debug build. Output will be
mapgen.log in the current directory.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1805 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 71d9ccc754..c8e75f5b61 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1638,7 +1638,8 @@ static void decrement_durations() you.duration[DUR_REPEL_MISSILES]--; if (you.duration[DUR_REPEL_MISSILES] == 6) { - mpr("Your repel missiles spell is about to expire...", MSGCH_DURATION); + mpr("Your repel missiles spell is about to expire...", + MSGCH_DURATION); if (coinflip()) you.duration[DUR_REPEL_MISSILES]--; } @@ -1654,7 +1655,8 @@ static void decrement_durations() you.duration[DUR_DEFLECT_MISSILES]--; if (you.duration[DUR_DEFLECT_MISSILES] == 6) { - mpr("Your deflect missiles spell is about to expire...", MSGCH_DURATION); + mpr("Your deflect missiles spell is about to expire...", + MSGCH_DURATION); if (coinflip()) you.duration[DUR_DEFLECT_MISSILES]--; } @@ -1726,8 +1728,6 @@ static void decrement_durations() break; case SPWPN_DISTORTION: msg += " seems straighter."; - // [dshaligram] Makes the brand unusable - // miscast_effect( SPTYP_TRANSLOCATION, 9, 90, 100, "a distortion effect" ); break; case SPWPN_PAIN: msg += " seems less painful."; @@ -3016,15 +3016,18 @@ static bool initialise(void) // system initialisation stuff: textbackground(0); -#ifdef DOS - directvideo = 1; -#endif - clrscr(); +#ifdef DEBUG_DIAGNOSTICS + if (crawl_state.map_stat_gen) + { + generate_map_stats(); + end(0, false); + } +#endif + // sets up a new game: const bool newc = new_game(); - if (!newc) restore_game(); |