B01001 fix: corpse grammar

<Someone> wrote:
> You start bashing monsters with your 2 cockatrice corpses.
> You hit the foo with the cockatrice corpse (note singular).
> The foo is slowing down. The foo turns to stone.
> Also: Your cockatrice corpses rots away.

It appears that vtense() has a problem recognizing "corpses"
as plural.  This doesn't fix that, it just switches to using
otense() in this particular case.
This commit is contained in:
nethack.allison
2003-11-01 22:05:44 +00:00
parent 64f2d8a37b
commit 67dea0ebe1
3 changed files with 6 additions and 3 deletions

View File

@@ -1538,7 +1538,7 @@ long timeout; /* unused */
char *cname = corpse_xname(obj, FALSE);
Your("%s%s %s away%c",
obj == uwep ? "wielded " : nul, cname,
vtense(cname, "rot"), obj == uwep ? '!' : '.');
otense(obj, "rot"), obj == uwep ? '!' : '.');
}
if (obj == uwep) {
uwepgone(); /* now bare handed */

View File

@@ -739,11 +739,13 @@ int thrown;
#endif
case CORPSE: /* fixed by polder@cs.vu.nl */
if (touch_petrifies(&mons[obj->corpsenm])) {
static const char withwhat[] = "corpse";
tmp = 1;
hittxt = TRUE;
You("hit %s with %s corpse.", mon_nam(mon),
You("hit %s with %s %s.", mon_nam(mon),
obj->dknown ? the(mons[obj->corpsenm].mname) :
an(mons[obj->corpsenm].mname));
an(mons[obj->corpsenm].mname),
(obj->quan > 1) ? makeplural(withwhat) : withwhat);
if (!munstone(mon, TRUE))
minstapetrify(mon, TRUE);
if (resists_ston(mon)) break;