diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-06 21:21:30 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-06 21:21:30 +0000 |
commit | 7d423aef8123a887cb2d3188206aeea9b628bd84 (patch) | |
tree | 9c856fc3d14000851951b7920c20011f72c6e5d2 /crawl-ref/source/debug.cc | |
parent | 44d7fbb36c55859117824fe25a298afbe437221b (diff) | |
download | crawl-ref-7d423aef8123a887cb2d3188206aeea9b628bd84.tar.gz crawl-ref-7d423aef8123a887cb2d3188206aeea9b628bd84.zip |
Fix 2011722: Reallow targetting beams such that you may be hit. (There's
a new prompt now, but don't prompt a second time if you already
confirmed another one before.)
Fix some issues when creating items in the Abyss during GDT_GAME_START.
This may or may not have played a role in 2008976.
Lower spawning rate in the Abyss during GDT_GAME_START (10% spawning
chance instead of guaranteed spawning per 5 turns).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6434 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r-- | crawl-ref/source/debug.cc | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index e7cb5544b2..f3cb294950 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -1851,11 +1851,11 @@ void debug_item_scan( void ) if (x == 0 && y == 0) continue; - // Looking for infinite stacks (ie more links than tems allowed) + // Looking for infinite stacks (ie more links than items allowed) // and for items which have bad coordinates (can't find their stack) for (int obj = igrd[x][y]; obj != NON_ITEM; obj = mitm[obj].link) { - // Check for invalid (zero quantity) items that are linked in + // Check for invalid (zero quantity) items that are linked in. if (!is_valid_item( mitm[obj] )) { mprf(MSGCH_ERROR, "Linked invalid item at (%d,%d)!", x, y); @@ -1903,7 +1903,6 @@ void debug_item_scan( void ) // Let's check to see if it's an errant monster object: for (int j = 0; j < MAX_MONSTERS; j++) - { for (int k = 0; k < NUM_MONSTER_SLOTS; k++) { if (menv[j].inv[k] == i) @@ -1913,7 +1912,6 @@ void debug_item_scan( void ) menv[j].x, menv[j].y ); } } - } } // Current bad items of interest: @@ -1937,21 +1935,21 @@ void debug_item_scan( void ) _dump_item( name, i, mitm[i] ); } else if ((mitm[i].base_type == OBJ_WEAPONS - && (abs(mitm[i].plus) > 30 + && (abs(mitm[i].plus) > 30 || abs(mitm[i].plus2) > 30 - || (!is_random_artefact( mitm[i] ) - && (mitm[i].special >= 30 - && mitm[i].special < 181)))) - - || (mitm[i].base_type == OBJ_MISSILES - && (abs(mitm[i].plus) > 25 - || (!is_random_artefact( mitm[i] ) - && mitm[i].special >= 30))) - - || (mitm[i].base_type == OBJ_ARMOUR - && (abs(mitm[i].plus) > 25 - || (!is_random_artefact( mitm[i] ) - && mitm[i].special >= 30)))) + || !is_random_artefact( mitm[i] ) + && mitm[i].special >= 30 + && mitm[i].special < 181)) + + || (mitm[i].base_type == OBJ_MISSILES + && (abs(mitm[i].plus) > 25 + || !is_random_artefact( mitm[i] ) + && mitm[i].special >= 30)) + + || (mitm[i].base_type == OBJ_ARMOUR + && (abs(mitm[i].plus) > 25 + || !is_random_artefact( mitm[i] ) + && mitm[i].special >= 30))) { mpr( "Bad plus or special value:", MSGCH_ERROR ); _dump_item( name, i, mitm[i] ); |