diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-28 14:14:43 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-28 14:14:43 +0000 |
commit | 5fd8034bab1bbd5d4480507b076fb7b67bef0299 (patch) | |
tree | b3c55f7fc027377b9e245a7c2fefe9302be57b0f /crawl-ref/source/dungeon.cc | |
parent | c842a2b176ff0cfb3a963db8f6b4c763dc0c00b1 (diff) | |
download | crawl-ref-5fd8034bab1bbd5d4480507b076fb7b67bef0299.tar.gz crawl-ref-5fd8034bab1bbd5d4480507b076fb7b67bef0299.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9700 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 323cf704c3..67a6f539db 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -1018,9 +1018,9 @@ static void _build_layout_skeleton(int level_number, int level_type, static int _num_items_wanted(int level_number) { if (level_number > 5 && one_chance_in(500 - 5 * level_number)) - return 10 + random2avg( 90, 2 ); // rich level! + return (10 + random2avg(90, 2)); // rich level! else - return 3 + roll_dice( 3, 11 ); + return (3 + roll_dice(3, 11)); } @@ -1051,14 +1051,14 @@ static void _fixup_walls() // If part of vaults -> walls depend on level. // If part of crypt -> all walls stone. - if (player_in_branch( BRANCH_DIS ) - || player_in_branch( BRANCH_VAULTS ) - || player_in_branch( BRANCH_CRYPT )) + if (player_in_branch(BRANCH_DIS) + || player_in_branch(BRANCH_VAULTS) + || player_in_branch(BRANCH_CRYPT)) { // Always the case with Dis {dlb} dungeon_feature_type vault_wall = DNGN_METAL_WALL; - if (player_in_branch( BRANCH_VAULTS )) + if (player_in_branch(BRANCH_VAULTS)) { vault_wall = DNGN_ROCK_WALL; const int bdepth = player_branch_depth(); @@ -1072,10 +1072,8 @@ static void _fixup_walls() if (bdepth > 6 && one_chance_in(10)) vault_wall = DNGN_GREEN_CRYSTAL_WALL; } - else if (player_in_branch( BRANCH_CRYPT )) - { + else if (player_in_branch(BRANCH_CRYPT)) vault_wall = DNGN_STONE_WALL; - } _replace_area(0,0,GXM-1,GYM-1,DNGN_ROCK_WALL,vault_wall,MMT_NO_WALL); } |