level further but does add more HP and Pw--throttle the increases
don't stop running when next to a peaceful, unless it blocks the way
mindless monsters shouldn't cringe stepping on squeaky boards
+falling down a hole or trapdoor will cause damage proportional to fall height
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
struct monst *mtmp;
char whynot[BUFSZ];
char *annotation;
+ int dist = newlevel->dlevel - dunlev(&u.uz);
+ boolean do_fall_dmg = FALSE;
if (dunlev(newlevel) > dunlevs_in_dungeon(newlevel))
newlevel->dlevel = dunlevs_in_dungeon(newlevel);
if (Punished)
ballfall();
selftouch("Falling, you");
+ do_fall_dmg = TRUE;
}
}
/* assume this will always return TRUE when changing level */
(void) in_out_region(u.ux, u.uy);
+
+ /* fall damage? */
+ if (do_fall_dmg) {
+ int dmg = d(dist, 6);
+
+ dmg = Maybe_Half_Phys(dmg);
+ losehp(dmg, "falling down a mine shaft", KILLED_BY);
+ }
+
(void) pickup(1);
}