Discworld: Sourcery

Include the page number for Sourcery's second passage.  While
in there, add another passage.

For wishing, recognize "sorcery" as an alternate spelling.
This commit is contained in:
PatR
2021-03-03 16:38:49 -08:00
parent 621c9436bc
commit d7be7031a1
2 changed files with 31 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 do_name.c $NHDT-Date: 1608749030 2020/12/23 18:43:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.186 $ */
/* NetHack 3.7 do_name.c $NHDT-Date: 1614818323 2021/03/04 00:38:43 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.198 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Pasi Kallinen, 2018. */
/* NetHack may be freely redistributed. See license for details. */
@@ -2319,14 +2319,22 @@ noveltitle(int *novidx)
return sir_Terry_novels[j];
}
/* figure out canonical novel title from player-specified one */
const char *
lookup_novel(const char *lookname, int *idx)
{
int k;
/* Take American or U.K. spelling of this one */
/*
* Accept variant spellings:
* _The_Colour_of_Magic_ uses British spelling, and American
* editions keep that, but we also recognize American spelling;
* _Sourcery_ is a joke rather than British spelling of "sorcery".
*/
if (!strcmpi(The(lookname), "The Color of Magic"))
lookname = sir_Terry_novels[0];
else if (!strcmpi(lookname, "Sorcery"))
lookname = "Sourcery"; /* [4] */
for (k = 0; k < SIZE(sir_Terry_novels); ++k) {
if (!strcmpi(lookname, sir_Terry_novels[k])