Fandom

Wikihack

Source:NetHack 3.0.0/trapname.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 trapname.h from the source code of NetHack 3.0.0. To link to a particular line, write [[NetHack 3.0.0/trapname.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: @(#)trapname.h	3.0	88/11/08
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef TRAPNAME_H	/* must be included after "hack.h" */
6.    #define TRAPNAME_H
7.    
8.    char *traps[] = {
9.    	"",
10.   	" monster trap",
11.   	" statue trap",
12.   	" bear trap",
13.   	"n arrow trap",
14.   	" dart trap",
15.   	" trapdoor",
16.   	" teleportation trap",
17.   	" pit",
18.   	" sleeping gas trap"
19.   	," magic trap"
20.   	," squeaky board"
21.   	," web"
22.   	," spiked pit"
23.   	," level teleporter"
24.   #ifdef SPELLS
25.   	,"n anti-magic field" 
26.   #endif
27.   	," rust trap"
28.   #ifdef POLYSELF
29.   	," polymorph trap"
30.   #endif
31.   	," land mine"
32.   };
33.   
34.   #endif	/* TRAPNAME_H /* */

Also on Fandom

Random Wiki