honor pushweapon when applying a tool or weapon causes it to become wielded
in the quest, if the locate level hasn't been reached yet, don't fall or
randomly teleport past it
+fix phrasing in monster against monster attack feedback when attacker is
+ wielding stacked weapons
Platform- and/or Interface-Specific Fixes
-/* SCCS Id: @(#)mhitm.c 3.5 2006/05/09 */
+/* SCCS Id: @(#)mhitm.c 3.5 2006/08/07 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
STATIC_OVL void
mswingsm(magr, mdef, otemp)
-register struct monst *magr, *mdef;
-register struct obj *otemp;
+struct monst *magr, *mdef;
+struct obj *otemp;
{
- char buf[BUFSZ];
- if (!flags.verbose || Blind || !mon_visible(magr)) return;
- Strcpy(buf, mon_nam(mdef));
- pline("%s %s %s %s at %s.", Monnam(magr),
+ if (flags.verbose && !Blind && mon_visible(magr)) {
+ pline("%s %s %s%s %s at %s.", Monnam(magr),
(objects[otemp->otyp].oc_dir & PIERCE) ? "thrusts" : "swings",
- mhis(magr), singular(otemp, xname), buf);
+ (otemp->quan > 1L) ? "one of " : "",
+ mhis(magr), xname(otemp), mon_nam(mdef));
+ }
}
/*
-/* SCCS Id: @(#)mhitu.c 3.5 2006/03/27 */
+/* SCCS Id: @(#)mhitu.c 3.5 2006/08/07 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
STATIC_OVL void
mswings(mtmp, otemp) /* monster swings obj */
-register struct monst *mtmp;
-register struct obj *otemp;
+struct monst *mtmp;
+struct obj *otemp;
{
- if (!flags.verbose || Blind || !mon_visible(mtmp))
- return;
+ if (flags.verbose && !Blind && mon_visible(mtmp)) {
pline("%s %s %s%s %s.", Monnam(mtmp),
(objects[otemp->otyp].oc_dir & PIERCE) ? "thrusts" : "swings",
(otemp->quan > 1L) ? "one of " : "",
mhis(mtmp), xname(otemp));
+ }
}
/* return how a poison attack was delivered */