]> granicus.if.org Git - nethack/commitdiff
fix B14022
authornethack.allison <nethack.allison>
Fri, 3 Jan 2003 04:40:27 +0000 (04:40 +0000)
committernethack.allison <nethack.allison>
Fri, 3 Jan 2003 04:40:27 +0000 (04:40 +0000)
> You're equally unlikely to be wishing for spellbooks by colour,
> but I note that 'grey' for 'gray' only works for dragonscale and
> stones, not the spellbook description.

doc/fixes34.1
src/objnam.c

index cc32c714669083ebca9e1a13625c0fff8c9a2dc1..e2b5b12b7874ae7365afe53977b83ddc11535e51 100644 (file)
@@ -344,6 +344,7 @@ avoid discrepancies in size and associated armor-wearing ability between
        wizard gnome player and same player polymorphed into gnomish wizard 
        by forcing newman() if poly-target matches your_race()
 add missing data.base entries for caveman, healer, monk, priest, and samurai
+allow "grey spellbook" as alternative spelling of "gray spellbook"
 
 
 Platform- and/or Interface-Specific Fixes
index 9c5fe3d57f8f4f8b63dc6cfc6e091e7f54c1e862..c94250cb13fbd8a22bf3d5709443c69a36312664 100644 (file)
@@ -1949,6 +1949,9 @@ boolean from_user;
                }
                as++;
        }
+       /* can't use spellings list for this one due to shuffling */
+       if (!strcmpi(bp, "grey spellbook"))
+               *(bp + 2) = 'a';
     }
 
        /* dragon scales - assumes order of dragons */