some spelling and inconsistency corrections; comments and elsewhere
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
.ds f0 \*(vr
|
.ds f0 \*(vr
|
||||||
.ds f1 \" empty
|
.ds f1 \" empty
|
||||||
.\"DO NOT REMOVE NH_DATESUB .ds f2 Date(%B %-d, %Y)
|
.\"DO NOT REMOVE NH_DATESUB .ds f2 Date(%B %-d, %Y)
|
||||||
.ds f2 December 03, 2025
|
.ds f2 December 11, 2025
|
||||||
.
|
.
|
||||||
.\" A note on some special characters:
|
.\" A note on some special characters:
|
||||||
.\" \(lq = left double quote
|
.\" \(lq = left double quote
|
||||||
@@ -3537,7 +3537,7 @@ is a section marker (the closing \(oq\f(CR]\fP\(cq can be followed
|
|||||||
by whitespace and then an arbitrary comment beginning with \(oq\f(CR#\fP\(cq).
|
by whitespace and then an arbitrary comment beginning with \(oq\f(CR#\fP\(cq).
|
||||||
The text between the square brackets is the section name.
|
The text between the square brackets is the section name.
|
||||||
Section markers are only valid after a CHOOSE directive and their names
|
Section markers are only valid after a CHOOSE directive and their names
|
||||||
are case insensitive.
|
are case-insensitive.
|
||||||
Lines after a section marker belong to that section up until another
|
Lines after a section marker belong to that section up until another
|
||||||
section starts or a marker without a name is encountered or the file ends.
|
section starts or a marker without a name is encountered or the file ends.
|
||||||
Lines within sections are ignored unless a CHOOSE directive has selected
|
Lines within sections are ignored unless a CHOOSE directive has selected
|
||||||
@@ -4671,7 +4671,7 @@ or you are making screenshots or streaming video.
|
|||||||
Using the
|
Using the
|
||||||
.op statuslines:3
|
.op statuslines:3
|
||||||
option is recommended so that there will be more room available for
|
option is recommended so that there will be more room available for
|
||||||
status information, unless you're using nethack's \fIQt\fP interface
|
status information, unless you're using NetHack's \fIQt\fP interface
|
||||||
or your terminal emulator window displays fewer than 25 lines.
|
or your terminal emulator window displays fewer than 25 lines.
|
||||||
Persistent.
|
Persistent.
|
||||||
.lp "silent "
|
.lp "silent "
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
\author{Original version - Eric S. Raymond\\
|
\author{Original version - Eric S. Raymond\\
|
||||||
(Edited and expanded for 3.7.0 by Mike Stephenson and others)}
|
(Edited and expanded for 3.7.0 by Mike Stephenson and others)}
|
||||||
%DO NOT REMOVE NH_DATESUB \date{Date(%B %-d, %Y)}
|
%DO NOT REMOVE NH_DATESUB \date{Date(%B %-d, %Y)}
|
||||||
\date{December 03, 2025}
|
\date{December 11, 2025}
|
||||||
|
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
@@ -3855,7 +3855,7 @@ is a section marker (the closing `{\tt \verb+]+}' can be followed
|
|||||||
by whitespace and then an arbitrary comment beginning with `{\tt \#}').
|
by whitespace and then an arbitrary comment beginning with `{\tt \#}').
|
||||||
The text between the square brackets is the section name.
|
The text between the square brackets is the section name.
|
||||||
Section markers are only valid after a CHOOSE directive and their names
|
Section markers are only valid after a CHOOSE directive and their names
|
||||||
are case insensitive.
|
are case-insensitive.
|
||||||
Lines after a section marker belong to that section up until another
|
Lines after a section marker belong to that section up until another
|
||||||
section starts or a marker without a name is encountered or the file ends.
|
section starts or a marker without a name is encountered or the file ends.
|
||||||
Lines within sections are ignored unless a CHOOSE directive has selected
|
Lines within sections are ignored unless a CHOOSE directive has selected
|
||||||
@@ -5114,7 +5114,7 @@ or you are making screenshots or streaming video.
|
|||||||
Using the
|
Using the
|
||||||
{\it statuslines:3\/}
|
{\it statuslines:3\/}
|
||||||
option is recommended so that there will be more room available for
|
option is recommended so that there will be more room available for
|
||||||
status information, unless you're using nethack's {\it Qt\/} interface
|
status information, unless you're using NetHack's {\it Qt\/} interface
|
||||||
or your terminal emulator window displays fewer than 25 lines.
|
or your terminal emulator window displays fewer than 25 lines.
|
||||||
Persistent.
|
Persistent.
|
||||||
%.lp
|
%.lp
|
||||||
|
|||||||
@@ -149,10 +149,11 @@
|
|||||||
|
|
||||||
#ifdef X11_GRAPHICS
|
#ifdef X11_GRAPHICS
|
||||||
/*
|
/*
|
||||||
* There are two ways that X11 tiles may be defined. (1) using a custom
|
* There are two ways that X11 tiles may be defined:
|
||||||
* format loaded by NetHack code, or (2) using the XPM format loaded by
|
* (1) using a custom format loaded by NetHack code.
|
||||||
* the free XPM library. The second option allows you to then use other
|
* (2) using the XPM format loaded by the free XPM library.
|
||||||
* programs to generate tiles files. For example, the PBMPlus tools
|
* The second option allows you to then use other programs to
|
||||||
|
* generate tiles files. For example, the PBMPlus tools
|
||||||
* would allow:
|
* would allow:
|
||||||
* xpmtoppm <x11tiles.xpm | pnmscale 1.25 | ppmquant 90 | \
|
* xpmtoppm <x11tiles.xpm | pnmscale 1.25 | ppmquant 90 | \
|
||||||
* ppmtoxpm >x11tiles_big.xpm
|
* ppmtoxpm >x11tiles_big.xpm
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ struct tmpbranch {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Values for type for tmpbranch structure.
|
* Values for type in tmpbranch structure.
|
||||||
*/
|
*/
|
||||||
#define TBR_STAIR 0 /* connection with both ends having a staircase */
|
#define TBR_STAIR 0 /* connection with both ends having a staircase */
|
||||||
#define TBR_NO_UP 1 /* connection with no up staircase */
|
#define TBR_NO_UP 1 /* connection with no up staircase */
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ struct linfo {
|
|||||||
/* 0x02 was FORGOTTEN, when amnesia made you forget maps */
|
/* 0x02 was FORGOTTEN, when amnesia made you forget maps */
|
||||||
#define LFILE_EXISTS 0x04 /* a level file exists for this level */
|
#define LFILE_EXISTS 0x04 /* a level file exists for this level */
|
||||||
/* Note: VISITED and LFILE_EXISTS are currently almost always
|
/* Note: VISITED and LFILE_EXISTS are currently almost always
|
||||||
* set at the same time. However they _mean_ different things.
|
* set at the same time. However, they _mean_ different things.
|
||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -482,7 +482,7 @@ struct instance_flags {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Old deprecated names
|
* Old, deprecated names
|
||||||
*/
|
*/
|
||||||
#ifdef TTY_GRAPHICS
|
#ifdef TTY_GRAPHICS
|
||||||
#define eight_bit_tty wc_eight_bit_input
|
#define eight_bit_tty wc_eight_bit_input
|
||||||
|
|||||||
@@ -781,7 +781,7 @@ struct selectionvar {
|
|||||||
|
|
||||||
/* structure for 'program_state'; not saved and restored */
|
/* structure for 'program_state'; not saved and restored */
|
||||||
struct sinfo {
|
struct sinfo {
|
||||||
int gameover; /* self explanatory? */
|
int gameover; /* self-explanatory? */
|
||||||
int stopprint; /* inhibit further end of game disclosure */
|
int stopprint; /* inhibit further end of game disclosure */
|
||||||
#ifdef HANGUPHANDLING
|
#ifdef HANGUPHANDLING
|
||||||
volatile int done_hup; /* SIGHUP or moral equivalent received
|
volatile int done_hup; /* SIGHUP or moral equivalent received
|
||||||
@@ -1350,7 +1350,7 @@ typedef uint32_t mmflags_nht; /* makemon MM_ flags */
|
|||||||
|
|
||||||
/* Macros for launching objects */
|
/* Macros for launching objects */
|
||||||
#define ROLL 0x01 /* the object is rolling */
|
#define ROLL 0x01 /* the object is rolling */
|
||||||
#define FLING 0x02 /* the object is flying thru the air */
|
#define FLING 0x02 /* the object is flying through the air */
|
||||||
#define LAUNCH_UNSEEN 0x40 /* hero neither caused nor saw it */
|
#define LAUNCH_UNSEEN 0x40 /* hero neither caused nor saw it */
|
||||||
#define LAUNCH_KNOWN 0x80 /* the hero caused this by explicit action */
|
#define LAUNCH_KNOWN 0x80 /* the hero caused this by explicit action */
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
#define UNLOCKDOOR 0x00800000L /* unlocks locked doors */
|
#define UNLOCKDOOR 0x00800000L /* unlocks locked doors */
|
||||||
#define BUSTDOOR 0x01000000L /* breaks any doors */
|
#define BUSTDOOR 0x01000000L /* breaks any doors */
|
||||||
#define ALLOW_ROCK 0x02000000L /* pushes rocks */
|
#define ALLOW_ROCK 0x02000000L /* pushes rocks */
|
||||||
#define ALLOW_WALL 0x04000000L /* walks thru walls */
|
#define ALLOW_WALL 0x04000000L /* walks through walls */
|
||||||
#define ALLOW_DIG 0x08000000L /* digs */
|
#define ALLOW_DIG 0x08000000L /* digs */
|
||||||
#define ALLOW_BARS 0x10000000L /* may pass thru iron bars */
|
#define ALLOW_BARS 0x10000000L /* may pass through iron bars */
|
||||||
#define ALLOW_SANCT 0x20000000L /* enters temples */
|
#define ALLOW_SANCT 0x20000000L /* enters temples */
|
||||||
#define ALLOW_SSM 0x40000000L /* ignores scare monster */
|
#define ALLOW_SSM 0x40000000L /* ignores scare monster */
|
||||||
#ifdef NHSTDC
|
#ifdef NHSTDC
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
#define AD_BLND 11 /* blinds (yellow light) */
|
#define AD_BLND 11 /* blinds (yellow light) */
|
||||||
#define AD_STUN 12 /* stuns */
|
#define AD_STUN 12 /* stuns */
|
||||||
#define AD_SLOW 13 /* slows */
|
#define AD_SLOW 13 /* slows */
|
||||||
#define AD_PLYS 14 /* paralyses */
|
#define AD_PLYS 14 /* paralyzes */
|
||||||
#define AD_DRLI 15 /* drains life levels (Vampire) */
|
#define AD_DRLI 15 /* drains life levels (Vampire) */
|
||||||
#define AD_DREN 16 /* drains magic energy */
|
#define AD_DREN 16 /* drains magic energy */
|
||||||
#define AD_LEGS 17 /* damages legs (xan) */
|
#define AD_LEGS 17 /* damages legs (xan) */
|
||||||
@@ -101,7 +101,7 @@ struct mhitm_data {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Monster to monster attacks. When a monster attacks another (mattackm),
|
* Monster-to-monster attacks. When a monster attacks another (mattackm),
|
||||||
* any or all of the following can be returned. See mattackm() for more
|
* any or all of the following can be returned. See mattackm() for more
|
||||||
* details.
|
* details.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -173,7 +173,7 @@
|
|||||||
as unique even though they really aren't; that's ok here */
|
as unique even though they really aren't; that's ok here */
|
||||||
#define unique_corpstat(ptr) (((ptr)->geno & G_UNIQ) != 0)
|
#define unique_corpstat(ptr) (((ptr)->geno & G_UNIQ) != 0)
|
||||||
|
|
||||||
/* this returns the light's range, or 0 if none; if we add more light emitting
|
/* this returns the light's range, or 0 if none; if we add more light-emitting
|
||||||
monsters, we'll likely have to add a new light range field to mons[] */
|
monsters, we'll likely have to add a new light range field to mons[] */
|
||||||
#define emits_light(ptr) \
|
#define emits_light(ptr) \
|
||||||
(((ptr)->mlet == S_LIGHT || (ptr) == &mons[PM_FLAMING_SPHERE] \
|
(((ptr)->mlet == S_LIGHT || (ptr) == &mons[PM_FLAMING_SPHERE] \
|
||||||
|
|||||||
@@ -85,9 +85,9 @@ enum ms_sounds {
|
|||||||
#define M1_FLY 0x00000001L /* can fly or float */
|
#define M1_FLY 0x00000001L /* can fly or float */
|
||||||
#define M1_SWIM 0x00000002L /* can traverse water */
|
#define M1_SWIM 0x00000002L /* can traverse water */
|
||||||
#define M1_AMORPHOUS 0x00000004L /* can flow under doors */
|
#define M1_AMORPHOUS 0x00000004L /* can flow under doors */
|
||||||
#define M1_WALLWALK 0x00000008L /* can phase thru rock */
|
#define M1_WALLWALK 0x00000008L /* can phase through rock */
|
||||||
#define M1_CLING 0x00000010L /* can cling to ceiling */
|
#define M1_CLING 0x00000010L /* can cling to ceiling */
|
||||||
#define M1_TUNNEL 0x00000020L /* can tunnel thru rock */
|
#define M1_TUNNEL 0x00000020L /* can tunnel through rock */
|
||||||
#define M1_NEEDPICK 0x00000040L /* needs pick to tunnel */
|
#define M1_NEEDPICK 0x00000040L /* needs pick to tunnel */
|
||||||
#define M1_CONCEAL 0x00000080L /* hides under objects */
|
#define M1_CONCEAL 0x00000080L /* hides under objects */
|
||||||
#define M1_HIDE 0x00000100L /* mimics, blends in with ceiling */
|
#define M1_HIDE 0x00000100L /* mimics, blends in with ceiling */
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ enum objclass_syms {
|
|||||||
/* for mkobj() use ONLY! odd '-SPBOOK_CLASS' is in case of unsigned enums */
|
/* for mkobj() use ONLY! odd '-SPBOOK_CLASS' is in case of unsigned enums */
|
||||||
#define SPBOOK_no_NOVEL (0 - (int) SPBOOK_CLASS)
|
#define SPBOOK_no_NOVEL (0 - (int) SPBOOK_CLASS)
|
||||||
|
|
||||||
#define BURNING_OIL (MAXOCLASSES + 1) /* Can be used as input to explode. */
|
#define BURNING_OIL (MAXOCLASSES + 1) /* Can be used as input to explode */
|
||||||
#define MON_EXPLODE (MAXOCLASSES + 2) /* Exploding monster (e.g. gas spore) */
|
#define MON_EXPLODE (MAXOCLASSES + 2) /* Exploding monster (e.g. gas spore) */
|
||||||
#define TRAP_EXPLODE (MAXOCLASSES + 3)
|
#define TRAP_EXPLODE (MAXOCLASSES + 3)
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ struct q_score { /* Quest "scorecard" */
|
|||||||
Bitfield(killed_leader, 1); /* killed the quest leader */
|
Bitfield(killed_leader, 1); /* killed the quest leader */
|
||||||
|
|
||||||
Bitfield(first_locate, 1); /* only set the first time */
|
Bitfield(first_locate, 1); /* only set the first time */
|
||||||
Bitfield(met_intermed, 1); /* used if the locate is a person. */
|
Bitfield(met_intermed, 1); /* used if the locate is a person */
|
||||||
Bitfield(got_final, 1); /* got the final quest assignment */
|
Bitfield(got_final, 1); /* got the final quest assignment */
|
||||||
|
|
||||||
Bitfield(made_goal, 3); /* # of times on goal level */
|
Bitfield(made_goal, 3); /* # of times on goal level */
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ typedef struct {
|
|||||||
|
|
||||||
/* Should probably do the same thing about objects */
|
/* Should probably do the same thing about objects */
|
||||||
|
|
||||||
boolean visible; /* Is the region visible ? */
|
boolean visible; /* Is the region visible? */
|
||||||
int glyph; /* Which glyph to use if visible */
|
int glyph; /* Which glyph to use if visible */
|
||||||
anything arg; /* Optional user argument (Ex: strength of
|
anything arg; /* Optional user argument (Ex: strength of
|
||||||
* force field, damage of a fire zone, ...*/
|
* force field, damage of a fire zone, ...*/
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
* building on Don G Kneller's MS-DOS implementation. See drawing.c for
|
* building on Don G Kneller's MS-DOS implementation. See drawing.c for
|
||||||
* the code that permits the user to set the contents of the symbol structure.
|
* the code that permits the user to set the contents of the symbol structure.
|
||||||
*
|
*
|
||||||
* The door representation was changed by Ari
|
* The door representation was changed by
|
||||||
* Huttunen(ahuttune@niksula.hut.fi)
|
* Ari Huttunen(ahuttune@niksula.hut.fi).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ struct trap {
|
|||||||
Bitfield(once, 1);
|
Bitfield(once, 1);
|
||||||
Bitfield(madeby_u, 1); /* So monsters may take offence when you trap
|
Bitfield(madeby_u, 1); /* So monsters may take offence when you trap
|
||||||
* them. Recognizing who made the trap isn't
|
* them. Recognizing who made the trap isn't
|
||||||
* completely unreasonable, everybody has
|
* completely unreasonable; everybody has
|
||||||
* their own style. This flag is also needed
|
* their own style. This flag is also needed
|
||||||
* when you untrap a monster. It would be too
|
* when you untrap a monster. It would be too
|
||||||
* easy to make a monster peaceful if you could
|
* easy to make a monster peaceful if you could
|
||||||
|
|||||||
@@ -711,7 +711,7 @@ online2(coordxy x0, coordxy y0, coordxy x1, coordxy y1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef STRNCMPI
|
#ifndef STRNCMPI
|
||||||
/* case insensitive counted string comparison */
|
/* case-insensitive counted string comparison */
|
||||||
/*{ aka strncasecmp }*/
|
/*{ aka strncasecmp }*/
|
||||||
int
|
int
|
||||||
strncmpi(
|
strncmpi(
|
||||||
@@ -735,7 +735,7 @@ strncmpi(
|
|||||||
#endif /* STRNCMPI */
|
#endif /* STRNCMPI */
|
||||||
|
|
||||||
#ifndef STRSTRI
|
#ifndef STRSTRI
|
||||||
/* case insensitive substring search */
|
/* case-insensitive substring search */
|
||||||
char *
|
char *
|
||||||
strstri(const char *str, const char *sub)
|
strstri(const char *str, const char *sub)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user