Merge branch 'NetHack-3.6'
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 dothrow.c $NHDT-Date: 1569276989 2019/09/23 22:16:29 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.161 $ */
|
||||
/* NetHack 3.6 dothrow.c $NHDT-Date: 1573688688 2019/11/13 23:44:48 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.164 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2013. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1149,6 +1149,10 @@ boolean twoweap; /* used to restore twoweapon mode if wielded weapon returns */
|
||||
will be left with a stale pointer. */
|
||||
|
||||
if (u.uswallow) {
|
||||
if (obj == uball) {
|
||||
uball->ox = uchain->ox = u.ux;
|
||||
uball->oy = uchain->oy = u.uy;
|
||||
}
|
||||
mon = u.ustuck;
|
||||
g.bhitpos.x = mon->mx;
|
||||
g.bhitpos.y = mon->my;
|
||||
@@ -1283,7 +1287,7 @@ boolean twoweap; /* used to restore twoweapon mode if wielded weapon returns */
|
||||
(void) snuff_candle(obj);
|
||||
g.notonhead = (g.bhitpos.x != mon->mx || g.bhitpos.y != mon->my);
|
||||
obj_gone = thitmonst(mon, obj);
|
||||
/* Monster may have been tamed; this frees old mon */
|
||||
/* Monster may have been tamed; this frees old mon [obsolete] */
|
||||
mon = m_at(g.bhitpos.x, g.bhitpos.y);
|
||||
|
||||
/* [perhaps this should be moved into thitmonst or hmon] */
|
||||
@@ -1308,8 +1312,8 @@ boolean twoweap; /* used to restore twoweapon mode if wielded weapon returns */
|
||||
clear_thrownobj = TRUE;
|
||||
goto throwit_return;
|
||||
} else {
|
||||
/* Mjollnir must we wielded to be thrown--caller verifies this;
|
||||
aklys must we wielded as primary to return when thrown */
|
||||
/* Mjollnir must be wielded to be thrown--caller verifies this;
|
||||
aklys must be wielded as primary to return when thrown */
|
||||
if (iflags.returning_missile) { /* Mjollnir or aklys */
|
||||
if (rn2(100)) {
|
||||
if (tethered_weapon)
|
||||
|
||||
Reference in New Issue
Block a user