diff options
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r-- | crawl-ref/source/decks.cc | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 8e1e5eacec..a060dbed1d 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -2071,31 +2071,8 @@ static void sage_card(int power, deck_rarity_type rarity) static void glass_card(int power, deck_rarity_type rarity) { const int power_level = get_power_level(power, rarity); - int radius2; - if ( power_level == 2 ) - radius2 = 1000000; - else - { - radius2 = random2(power/40) + 2; - radius2 *= radius2; - } - - for ( int x = X_BOUND_1; x <= X_BOUND_2; ++x ) - { - for ( int y = Y_BOUND_1; y <= Y_BOUND_2; ++y ) - { - if ( distance(x,y,you.x_pos,you.y_pos) < radius2 ) - { - if ( grd[x][y] == DNGN_ROCK_WALL ) - grd[x][y] = DNGN_CLEAR_ROCK_WALL; - else if ( grd[x][y] == DNGN_STONE_WALL ) - grd[x][y] = DNGN_CLEAR_STONE_WALL; - else if ( grd[x][y] == DNGN_PERMAROCK_WALL ) - grd[x][y] = DNGN_CLEAR_PERMAROCK_WALL; - } - } - } - + const int radius = ( power_level == 2 ) ? 1000 : random2(power/40) + 2; + vitrify_area(radius); } static void dowsing_card(int power, deck_rarity_type rarity) |