more #802 - lava travel rather than running

Too many negations for my brain to cope with.  I've tested travel
properly this time, but not re-tested running (which shouldn't be
affected by this code).
This commit is contained in:
PatR
2022-07-04 12:28:12 -07:00
parent 7e6fc4e4ed
commit bb53addd14
2 changed files with 20 additions and 15 deletions

View File

@@ -57,8 +57,10 @@ boulder_hits_pool(
int chance = rn2(10); /* water: 90%; lava: 10% */
struct monst *mtmp;
/* chance for boulder to fill pool: Plane of Water==0%,
lava 10%, wall of water==50%, other water==90% */
fills_up = Is_waterlevel(&u.uz) ? FALSE
: (ltyp == WATER) ? (chance < 5) /* wall of water */
: IS_WATERWALL(ltyp) ? (chance < 5)
: lava ? (chance == 0) : (chance != 0);
if (fills_up) {