Merge branch 'NetHack-3.6.2'
This commit is contained in:
10
Files
10
Files
@@ -220,8 +220,8 @@ snd86unx.shr
|
||||
sys/unix/hints:
|
||||
(files for configuring UNIX NetHack versions)
|
||||
linux linux-chroot linux-qt4 linux-qt5
|
||||
linux-x11 macosx macosx.sh macosx10.10
|
||||
macosx10.10-qt macosx10.5 macosx10.7 macosx10.8
|
||||
linux-x11 macosx macosx.sh macosx10.5
|
||||
macosx10.7 macosx10.8 macosx10.10 macosx10.10-qt
|
||||
unix
|
||||
|
||||
sys/vms:
|
||||
@@ -394,8 +394,8 @@ Tou-fila.lev Tou-filb.lev Tou-goal.lev Tou-loca.lev Tou-strt.lev
|
||||
Val-fila.lev Val-filb.lev Val-goal.lev Val-loca.lev Val-strt.lev
|
||||
Wiz-fila.lev Wiz-filb.lev Wiz-goal.lev Wiz-loca.lev Wiz-strt.lev
|
||||
air.lev asmodeus.lev astral.lev baalz.lev bigrm-1.lev
|
||||
bigrm-10.lev bigrm-2.lev bigrm-3.lev bigrm-4.lev bigrm-5.lev
|
||||
bigrm-6.lev bigrm-7.lev bigrm-8.lev bigrm-9.lev castle.lev
|
||||
bigrm-2.lev bigrm-3.lev bigrm-4.lev bigrm-5.lev bigrm-6.lev
|
||||
bigrm-7.lev bigrm-8.lev bigrm-9.lev bigrm-10.lev castle.lev
|
||||
earth.lev fakewiz1.lev fakewiz2.lev fire.lev juiblex.lev
|
||||
knox.lev medusa-1.lev medusa-2.lev medusa-3.lev medusa-4.lev
|
||||
minefill.lev minend-1.lev minend-2.lev minend-3.lev minetn-1.lev
|
||||
@@ -404,8 +404,6 @@ minetn-7.lev oracle.lev orcus.lev sanctum.lev soko1-1.lev
|
||||
soko1-2.lev soko2-1.lev soko2-2.lev soko3-1.lev soko3-2.lev
|
||||
soko4-1.lev soko4-2.lev tower1.lev tower2.lev tower3.lev
|
||||
valley.lev water.lev wizard1.lev wizard2.lev wizard3.lev
|
||||
|
||||
(files generated by makedefs at playground creation time)
|
||||
data dungeon.pdf options oracles quest.dat rumors
|
||||
|
||||
(files generated for Qt interface on Mac OS X)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 mondata.c $NHDT-Date: 1508479720 2017/10/20 06:08:40 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.63 $ */
|
||||
/* NetHack 3.6 mondata.c $NHDT-Date: 1539938825 2018/10/19 08:47:05 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.67 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2011. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -740,7 +740,9 @@ const char *in_str;
|
||||
{ "invisible stalker", PM_STALKER },
|
||||
{ "high-elf", PM_ELVENKING }, /* PM_HIGH_ELF is obsolete */
|
||||
{ "halfling", PM_HOBBIT }, /* potential guess for polyself */
|
||||
/* Hyphenated names */
|
||||
{ "genie", PM_DJINNI }, /* potential guess for ^G/#wizgenesis */
|
||||
/* Hyphenated names -- it would be nice to handle these via
|
||||
fuzzymatch() but it isn't able to ignore trailing stuff */
|
||||
{ "ki rin", PM_KI_RIN },
|
||||
{ "uruk hai", PM_URUK_HAI },
|
||||
{ "orc captain", PM_ORC_CAPTAIN },
|
||||
|
||||
16
src/objnam.c
16
src/objnam.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 objnam.c $NHDT-Date: 1537659941 2018/09/22 23:45:41 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.212 $ */
|
||||
/* NetHack 3.6 objnam.c $NHDT-Date: 1539938837 2018/10/19 08:47:17 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.214 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2011. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -2398,7 +2398,13 @@ const char *oldstr;
|
||||
if (p >= bp + 2 && lowc(p[-2]) == 'e') {
|
||||
if (p >= bp + 3 && lowc(p[-3]) == 'i') { /* "ies" */
|
||||
if (!BSTRCMPI(bp, p - 7, "cookies")
|
||||
|| !BSTRCMPI(bp, p - 4, "pies")
|
||||
|| (!BSTRCMPI(bp, p - 4, "pies")
|
||||
/* avoid false match for "harpies" */
|
||||
&& (p - 4 == bp || p[-5] == ' '))
|
||||
/* alternate djinni/djinn spelling; not really needed */
|
||||
|| (!BSTRCMPI(bp, p - 6, "genies")
|
||||
/* avoid false match for "progenies" */
|
||||
&& (p - 6 == bp || p[-7] == ' '))
|
||||
|| !BSTRCMPI(bp, p - 5, "mbies") /* zombie */
|
||||
|| !BSTRCMPI(bp, p - 5, "yries")) /* valkyrie */
|
||||
goto mins;
|
||||
@@ -2648,7 +2654,7 @@ STATIC_OVL NEARDATA const struct o_range o_ranges[] = {
|
||||
absence of spaces and/or hyphens (such as "pickaxe" vs "pick axe"
|
||||
vs "pick-axe") then there is no need for inclusion in this list;
|
||||
likewise for ``"of" inversions'' ("boots of speed" vs "speed boots") */
|
||||
struct alt_spellings {
|
||||
static const struct alt_spellings {
|
||||
const char *sp;
|
||||
int ob;
|
||||
} spellings[] = {
|
||||
@@ -2673,6 +2679,8 @@ struct alt_spellings {
|
||||
{ "eucalyptus", EUCALYPTUS_LEAF },
|
||||
{ "royal jelly", LUMP_OF_ROYAL_JELLY },
|
||||
{ "lembas", LEMBAS_WAFER },
|
||||
{ "cookie", FORTUNE_COOKIE },
|
||||
{ "pie", CREAM_PIE },
|
||||
{ "marker", MAGIC_MARKER },
|
||||
{ "hook", GRAPPLING_HOOK },
|
||||
{ "grappling iron", GRAPPLING_HOOK },
|
||||
@@ -3177,7 +3185,7 @@ struct obj *no_wish;
|
||||
|
||||
/* Alternate spellings (pick-ax, silver sabre, &c) */
|
||||
{
|
||||
struct alt_spellings *as = spellings;
|
||||
const struct alt_spellings *as = spellings;
|
||||
|
||||
while (as->sp) {
|
||||
if (fuzzymatch(bp, as->sp, " -", TRUE)) {
|
||||
|
||||
Reference in New Issue
Block a user