better boulder pushing feedback

When you push a pile of boulders, describe the second and remainder
as "the next boulder" rather than just "the boulder".  Matters most
when pushing into water or lava and you keep on pushing when the
first one or more sink into the pool or plug it, but also matters
for an ordinary push where the top-most one moves successfully and
then blocks the continuation attempt to push the second one.  It was
somewhat confusing when all the messages said "the boulder" whether
they were referring to the same boulder or different ones.

Multiple pushes on the same move has always been a bit odd, but this
doesn't change that, just the feedback it generates.
This commit is contained in:
PatR
2021-10-09 10:54:47 -07:00
parent 6eecfbc28b
commit 0e5b6ed519
3 changed files with 67 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 objnam.c $NHDT-Date: 1625962417 2021/07/11 00:13:37 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.325 $ */
/* NetHack 3.7 objnam.c $NHDT-Date: 1633802071 2021/10/09 17:54:31 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.335 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2011. */
/* NetHack may be freely redistributed. See license for details. */
@@ -664,8 +664,12 @@ xname_flags(
: the_unique_pm(&mons[omndx]) ? "the "
: just_an(anbuf, statue_pmname),
statue_pmname);
} else
Strcpy(buf, actualn);
} else {
if (typ == BOULDER && obj->next_boulder)
Strcat(strcpy(buf, "next "), actualn);
else
Strcpy(buf, actualn);
}
break;
case BALL_CLASS:
Sprintf(buf, "%sheavy iron ball",