From 19155f1f85058ef9d65d11e60c63cc69c36d4e8a Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 5 Jan 2008 00:27:23 +0000 Subject: Remove invalid check for 2 or more levels of the acute vision mutation, as it only has one level. Also remove some unneeded whitespace. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3193 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/misc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/misc.cc') diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index ae0c9b404e..4ae926d439 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -150,7 +150,7 @@ void turn_corpse_into_chunks( item_def &item ) break; } - move_item_to_grid( &o, item.x, item.y ); + move_item_to_grid( &o, item.x, item.y ); } } // end place_chunks() @@ -181,10 +181,10 @@ void search_around( bool only_adjacent ) // don't exclude own square; may be levitating if (dist == 0) ++dist; - + // making this harsher by removing the old +1 int effective = you.skills[SK_TRAPS_DOORS] / (2*dist - 1); - + if (grd[srx][sry] == DNGN_SECRET_DOOR && random2(17) <= effective) { @@ -197,7 +197,7 @@ void search_around( bool only_adjacent ) random2(17) <= effective) { i = trap_at_xy(srx, sry); - + if (i != -1) { grd[srx][sry] = trap_category(env.trap[i].type); -- cgit v1.2.3-54-g00ecf