Source:Hack 1.0/def.trap.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to def.trap.h from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/def.trap.h#line123]], for example.

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

Screenshots and source code from Hack are used under the CWI license.

1.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
2.    
3.    /* various kinds of traps */
4.    #define BEAR_TRAP	0
5.    #define	ARROW_TRAP	1
6.    #define	DART_TRAP	2
7.    #define TRAPDOOR	3
8.    #define	TELEP_TRAP	4
9.    #define PIT 5
10.   #define SLP_GAS_TRAP	6
11.   #define	PIERC	7
12.   #define	MIMIC	8	/* used only in mklev.c */
13.   /* before adding more trap types, check mfndpos ! */
14.   /* #define SEEN 32 - trap which has been seen */