U319 - lotu juice
Valid fruit names like lotus would result in funny fruit juice names, eg "lotu juice". Looking at a long list of words ending in "us", the ones one might reasonbly use for a fruit name were all singular, as were almost all of the unreasonable words. Changed the logic to prefer to leave "us" words alone, except for 2 monster types that might be entered with "s" at the end. Tengus is not correct, according to makeplural, but I put that in to be nice.
This commit is contained in:
@@ -9,6 +9,7 @@ missing opthelp for use_inverse
|
|||||||
Never say "It moves only reluctantly"
|
Never say "It moves only reluctantly"
|
||||||
expert fireball/cone of cold could not target a monster seen only with
|
expert fireball/cone of cold could not target a monster seen only with
|
||||||
infravision or ESP
|
infravision or ESP
|
||||||
|
display "lotus juice", not "lotu juice" for the fruit juice name
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+6
-4
@@ -1524,6 +1524,11 @@ const char *oldstr;
|
|||||||
!BSTRCMP(bp, p-6, "scales"))
|
!BSTRCMP(bp, p-6, "scales"))
|
||||||
return bp;
|
return bp;
|
||||||
|
|
||||||
|
} else if (!BSTRCMP(bp, p-2, "us")) { /* lotus, fungus... */
|
||||||
|
if (BSTRCMP(bp, p-6, "tengus") && /* but not these... */
|
||||||
|
BSTRCMP(bp, p-7, "hezrous"))
|
||||||
|
return bp;
|
||||||
|
|
||||||
} else if (!BSTRCMP(bp, p-5, "boots") ||
|
} else if (!BSTRCMP(bp, p-5, "boots") ||
|
||||||
!BSTRCMP(bp, p-9, "gauntlets") ||
|
!BSTRCMP(bp, p-9, "gauntlets") ||
|
||||||
!BSTRCMP(bp, p-6, "tricks") ||
|
!BSTRCMP(bp, p-6, "tricks") ||
|
||||||
@@ -1532,13 +1537,10 @@ const char *oldstr;
|
|||||||
!BSTRCMP(bp, p-4, "ness") ||
|
!BSTRCMP(bp, p-4, "ness") ||
|
||||||
!BSTRCMP(bp, p-14, "shape changers") ||
|
!BSTRCMP(bp, p-14, "shape changers") ||
|
||||||
!BSTRCMP(bp, p-15, "detect monsters") ||
|
!BSTRCMP(bp, p-15, "detect monsters") ||
|
||||||
!BSTRCMPI(bp, p-11, "Aesculapius") || /* staff */
|
|
||||||
!BSTRCMP(bp, p-10, "eucalyptus") ||
|
|
||||||
#ifdef WIZARD
|
#ifdef WIZARD
|
||||||
!BSTRCMP(bp, p-9, "iron bars") ||
|
!BSTRCMP(bp, p-9, "iron bars") ||
|
||||||
#endif
|
#endif
|
||||||
!BSTRCMP(bp, p-5, "aklys") ||
|
!BSTRCMP(bp, p-5, "aklys"))
|
||||||
!BSTRCMP(bp, p-6, "fungus"))
|
|
||||||
return bp;
|
return bp;
|
||||||
mins:
|
mins:
|
||||||
p[-1] = '\0';
|
p[-1] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user