fix #H4457 - grammar nitpick
"Your pair of speed boots glow silver for a moment." should be "Your pair of speed boots glows silver for a moment.". The fix reverses a post-3.6.0 change to is_plural(). Also, add new pair_of() to test for object formatted as "pair of Bars". For verb usage, that's definitely singular, but for pronoun usage, sometimes plural seems better (although it might actually be incorrect). I fixed up the formatting of a block comment in obj.h, but it is still a candidate for tab cleanup.
This commit is contained in:
@@ -1091,6 +1091,7 @@ dokick()
|
||||
goto ouch;
|
||||
if (IS_TREE(maploc->typ)) {
|
||||
struct obj *treefruit;
|
||||
|
||||
/* nothing, fruit or trouble? 75:23.5:1.5% */
|
||||
if (rn2(3)) {
|
||||
if (!rn2(6) && !(mvitals[PM_KILLER_BEE].mvflags & G_GONE))
|
||||
@@ -1101,7 +1102,9 @@ dokick()
|
||||
&& (treefruit = rnd_treefruit_at(x, y))) {
|
||||
long nfruit = 8L - rnl(7), nfall;
|
||||
short frtype = treefruit->otyp;
|
||||
|
||||
treefruit->quan = nfruit;
|
||||
treefruit->owt = weight(treefruit);
|
||||
if (is_plural(treefruit))
|
||||
pline("Some %s fall from the tree!", xname(treefruit));
|
||||
else
|
||||
@@ -1125,6 +1128,7 @@ dokick()
|
||||
int cnt = rnl(4) + 2;
|
||||
int made = 0;
|
||||
coord mm;
|
||||
|
||||
mm.x = x;
|
||||
mm.y = y;
|
||||
while (cnt--) {
|
||||
|
||||
Reference in New Issue
Block a user