verb agreement

add and use new APIs, Tobjnam, otense and vtense, is_plural
to determine tense/form of verbs and a few pronouns as well
This commit is contained in:
cohrs
2002-02-09 00:24:49 +00:00
parent cf37a7bac0
commit 91c5521009
17 changed files with 277 additions and 182 deletions

View File

@@ -343,7 +343,7 @@ mattacku(mtmp)
newsym(u.ux,u.uy);
} else {
pline("%s is killed by a falling %s (you)!",
Monnam(mtmp), youmonst.data->mname);
Monnam(mtmp), youmonst.data->mname);
killed(mtmp);
newsym(u.ux,u.uy);
if (mtmp->mhp > 0) return 0;
@@ -1526,10 +1526,9 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
i = number_leashed();
if (i > 0) {
pline_The("leash%s snap%s loose.",
(i > 1) ? "es" : "",
(i > 1) ? "" : "s");
unleash_all();
char *s = (i > 1) ? "leashes" : "leash";
pline_The("%s %s loose.", s, vtense(s, "snap"));
unleash_all();
}
if (touch_petrifies(youmonst.data) && !resists_ston(mtmp)) {