Merge branch 'win-wip3.7' into win-wip3.7-bart
Conflicts: src/end.c
This commit is contained in:
16
src/hack.c
16
src/hack.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 hack.c $NHDT-Date: 1544401269 2018/12/10 00:21:09 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.201 $ */
|
||||
/* NetHack 3.6 hack.c $NHDT-Date: 1545530973 2018/12/23 02:09:33 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.202 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Derek S. Ray, 2015. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1427,6 +1427,19 @@ domove()
|
||||
}
|
||||
x = u.ux + u.dx;
|
||||
y = u.uy + u.dy;
|
||||
|
||||
/* are we trying to move out of water while carrying too much? */
|
||||
if (isok(x, y) && !is_pool(x, y) && !Is_waterlevel(&u.uz)
|
||||
&& wtcap > (Swimming ? MOD_ENCUMBER : SLT_ENCUMBER)) {
|
||||
/* when escaping from drowning you need to be unencumbered
|
||||
in order to crawl out of water, but when not drowning,
|
||||
doing so while encumbered is feasible; if in an aquatic
|
||||
form, stressed or less is allowed; otherwise (magical
|
||||
breathing), only burdened is allowed */
|
||||
You("are carrying too much to climb out of the water.");
|
||||
nomul(0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!isok(x, y)) {
|
||||
nomul(0);
|
||||
@@ -1439,6 +1452,7 @@ domove()
|
||||
if (iflags.mention_walls) {
|
||||
if (trap && trap->tseen) {
|
||||
int tt = what_trap(trap->ttyp);
|
||||
|
||||
You("stop in front of %s.",
|
||||
an(defsyms[trap_to_defsym(tt)].explanation));
|
||||
} else if (is_pool_or_lava(x,y) && levl[x][y].seenv) {
|
||||
|
||||
Reference in New Issue
Block a user