Fandom

Wikihack

Source:NetHack 3.0.0/mfndpos.h

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Below is the full text to mfndpos.h from the source code of NetHack 3.0.0. To link to a particular line, write [[NetHack 3.0.0/mfndpos.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

The NetHack General Public License applies to screenshots, source code and other content from NetHack.
1.    /*	SCCS Id: @(#)mfndpos.h	3.0	88/10/15
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    /* mfndpos.h - version 1.0.2 */
5.     
6.    #ifndef MFNDPOS_H
7.    #define MFNDPOS_H
8.    
9.    /* changed by GAN 02/06/87 to add nine extra bits for traps -
10.    * this because new traps make nine for traps insufficient
11.    */
12.    
13.   #define ALLOW_TRAPS     0777777L
14.   #define ALLOW_U         01000000L	/* can attack you */
15.   #define ALLOW_M         02000000L	/* can attack other monsters */
16.   #define ALLOW_TM        04000000L
17.   #define ALLOW_ALL       (ALLOW_U | ALLOW_M | ALLOW_TM | ALLOW_TRAPS)
18.   #define ALLOW_SSM       010000000L	/* ignores scare monster */
19.   #define ALLOW_ROCK      020000000L	/* pushes rocks */
20.   #define NOTONL          040000000L	/* stays off direct line to player */
21.   #define NOGARLIC        0100000000L	/* hates garlic */
22.   #define ALLOW_WALL      0200000000L	/* walks through walls */
23.   #define ALLOW_DIG       0400000000L	/* digs */
24.   #define ALLOW_SANCT	01000000000L	/* enters a temple */
25.   
26.   #endif /* MFNDPOS_H /**/

Also on Fandom

Random Wiki