diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-05 00:27:23 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-05 00:27:23 +0000 |
commit | 19155f1f85058ef9d65d11e60c63cc69c36d4e8a (patch) | |
tree | 8acc2eb35c21a5a7b3eaf6751f6864f06d358ed2 | |
parent | 58e79e19494a18803fc90684ef6062f4d32d68ec (diff) | |
download | crawl-ref-19155f1f85058ef9d65d11e60c63cc69c36d4e8a.tar.gz crawl-ref-19155f1f85058ef9d65d11e60c63cc69c36d4e8a.zip |
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
-rw-r--r-- | crawl-ref/source/acr.cc | 9 | ||||
-rw-r--r-- | crawl-ref/source/misc.cc | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 1b870aa917..c3b65b061b 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -2797,14 +2797,13 @@ static void world_reacts() check_banished(); check_shafts(); - + check_sanctuary(); run_environment_effects(); if ( !you.cannot_act() && !you.mutation[MUT_BLURRY_VISION] && - (you.mutation[MUT_ACUTE_VISION] >= 2 || - random2(50) < you.skills[SK_TRAPS_DOORS]) ) + random2(50) < you.skills[SK_TRAPS_DOORS] ) { search_around(false); // check nonadjacent squares too } @@ -2820,10 +2819,10 @@ static void world_reacts() special_wielded(); if (one_chance_in(10)) - { + { // this is instantaneous if (player_teleport() > 0 && one_chance_in(100 / player_teleport())) - you_teleport_now( true ); + you_teleport_now( true ); else if (you.level_type == LEVEL_ABYSS && one_chance_in(30)) you_teleport_now( false, true ); // to new area of the Abyss } 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); |