From 38c3e5a9f9cdfa555b437ce3f5e3936caaeab778 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Fri, 3 Jan 2003 04:40:27 +0000 Subject: [PATCH] fix B14022 > 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 | 1 + src/objnam.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index cc32c7146..e2b5b12b7 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/objnam.c b/src/objnam.c index 9c5fe3d57..c94250cb1 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -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 */ -- 2.40.0