candelabrum wording

On Sat, 18 Dec 2004 14:07:14 +1300, <email deleted> wrote:
> Adding one of several candles to a candelabrum which already has six
> gives an ungrammatical message.
This commit is contained in:
nethack.allison
2004-12-20 23:57:02 +00:00
parent e004822da3
commit 38f9ba9a91
2 changed files with 7 additions and 2 deletions

View File

@@ -1026,9 +1026,12 @@ struct obj **optr;
use_lamp(obj);
return;
} else {
if ((long)otmp->spe + obj->quan > 7L)
if ((long)otmp->spe + obj->quan > 7L) {
obj = splitobj(obj, 7L - (long)otmp->spe);
else *optr = 0;
/* avoid a gramatical error if obj->quan gets
reduced to 1 candle from more than one */
s = (obj->quan != 1) ? "candles" : "candle";
} else *optr = 0;
You("attach %ld%s %s to %s.",
obj->quan, !otmp->spe ? "" : " more",
s, the(xname(otmp)));