Source:NetHack 1.4f/permonst.h

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

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

1.   /*	SCCS Id: @(#)permonst.h	1.3	87/07/14 2.   /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3.    /* permonst.h - version 1.0.2 */ 4.    5.    struct permonst { 6.   	char *mname,mlet; 7.   	schar mlevel,mmove,ac,mr,damn,damd; 8.   	unsigned pxlth; 9.   };  10.    11.   extern struct permonst mons[]; 12.  #define PM_GNOME	&mons[1] 13.  #define PM_HOBGOBLIN	&mons[2] 14.  #ifndef KOPS 15.  #define PM_KOBOLD	&mons[4] 16.  #endif 17.  #define PM_ACID_BLOB	&mons[7] 18.  #ifdef ROCKMOLE 19.  #define PM_ORC		&mons[10] 20.  #define	PM_ZOMBIE	&mons[12] 21.  #else 22.  #define PM_ORC		&mons[11] 23.  #define	PM_ZOMBIE	&mons[13] 24.  #endif 25.  #define	PM_PIERCER	&mons[17] 26.  #define PM_CENTAUR	&mons[22] 27.  #define	PM_KILLER_BEE	&mons[26] 28.  #ifdef SPIDERS 29.  #define PM_SPIDER	&mons[31] 30.  #endif 31.  #define	PM_WRAITH	&mons[33] 32.  #define	PM_MIMIC	&mons[37] 33.  #define PM_TROLL	&mons[38] 34.  #define	PM_VAMPIRE	&mons[43] 35.  #define PM_XORN		&mons[44] 36.  #define	PM_CHAMELEON	&mons[47] 37.  #define PM_DRAGON	&mons[48] 38.  #define PM_ETTIN	&mons[49] 39.  /* The ones below changed to include giants. */ 40.   #define	PM_DEMON	&mons[55] 41.  #define	PM_MINOTAUR	&mons[56]	/* last in mons array */ 42.  #define	PM_SHK		&mons[57]	/* very last */ 43.  #define	PM_GHOST	&pm_ghost 44.  #define	PM_EEL		&pm_eel 45.  #define	PM_WIZARD	&pm_wizard 46.  #define	CMNUM		56		/* number of common monsters */