From: nhmall Date: Sat, 16 Nov 2019 19:17:11 +0000 (-0500) Subject: likely final pluralization change for today X-Git-Tag: NetHack-3.6.3.beta1.2019.11.17~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d74718fc2bf236e11ab47da8a2d1341d3a631508;p=nethack likely final pluralization change for today --- diff --git a/src/objnam.c b/src/objnam.c index 9cf7edda0..796c90e84 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -2437,6 +2437,16 @@ const char *oldstr; lo_c = lowc(*spot); + /* codex/spadix/neocortex and the like */ + if (len >= 5 + && (!strcmpi(spot - 2, "dex") + ||!strcmpi(spot - 2, "dix") + ||!strcmpi(spot - 2, "tex")) + /* indices would have been ok too, but stick with indexes */ + && (strcmpi(spot - 4,"index") != 0)) { + Strcasecpy(spot - 1, "ices"); /* ex|ix -> ices */ + goto bottom; + } /* Ends in z, x, s, ch, sh; add an "es" */ if (index("zxs", lo_c) || (len >= 2 && lo_c == 'h' && index("cs", lowc(*(spot - 1)))