Source:Hack 1.0/hack.monst.c

From NetHackWiki
Jump to: navigation, search

Below is the full text to hack.monst.c from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/hack.monst.c#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.    #include "mklev.h"
4.    #include "def.eshk.h"
5.    
6.    struct permonst mons[CMNUM+2] = {
7.    	{ "bat",		'B',1,22,8,1,4,0 },
8.    	{ "gnome",		'G',1,6,5,1,6,0 },
9.    	{ "hobgoblin",	'H',1,9,5,1,8,0 },
10.   	{ "jackal",		'J',0,12,7,1,2,0 },
11.   	{ "kobold",		'K',1,6,7,1,4,0 },
12.   	{ "leprechaun",	'L',5,15,8,1,2,0 },
13.   	{ "giant rat",	'r',0,12,7,1,3,0 },
14.   	{ "acid blob",	'a',2,3,8,0,0,0 },
15.   	{ "floating eye",	'E',2,1,9,0,0,0 },
16.   	{ "homunculus",	'h',2,6,6,1,3,0 },
17.   	{ "imp",		'i',2,6,2,1,4,0 },
18.   	{ "orc",		'O',2,9,6,1,8,0 },
19.   	{ "yellow light",	'y',3,15,0,0,0,0 },
20.   	{ "zombie",		'Z',2,6,8,1,8,0 },
21.   	{ "giant ant",		'A',3,18,3,1,6,0 },
22.   	{ "fog cloud",		'f',3,1,0,1,6,0 },
23.   	{ "nymph",		'N',6,12,9,1,2,0 },
24.   	{ "piercer",		'p',3,1,3,2,6,0 },
25.   	{ "quasit",		'Q',3,15,3,1,4,0 },
26.   	{ "quivering blob",	'q',3,1,8,1,8,0 },
27.   	{ "violet fungi",	'v',3,1,7,1,4,0 },
28.   	{ "giant beetle",	'b',4,6,4,3,4,0 },
29.   	{ "centaur",		'C',4,18,4,1,6,0 },
30.   	{ "cockatrice",		'c',4,6,6,1,3,0 },
31.   	{ "gelatinous cube",	'g',4,6,8,2,4,0 },
32.   	{ "jaguar",		'j',4,15,6,1,8,0 },
33.   	{ "killer bee",		'k',4,14,4,2,4,0 },
34.   	{ "snake",		'S',4,15,3,1,6,0 },
35.   	{ "freezing sphere",	'F',2,13,4,0,0,0 },
36.   	{ "owlbear",		'o',5,12,5,2,6,0 },
37.   	{ "rust monster",	'R',10,18,3,0,0,0 },
38.   	{ "scorpion",		's',5,15,3,1,4,0 },
39.   	{ "tengu",		't',5,13,5,1,7,0 },
40.   	{ "wraith",		'W',5,12,5,1,6,0 },
41.   #ifdef NOWORM
42.   	{ "wumpus",		'w',8,3,2,3,6,0 },
43.   #else
44.   	{ "long worm",	'w',8,3,5,1,4,0 },
45.   #endif NOWORM
46.   	{ "large dog",	'd',6,15,4,2,4,0 },
47.   	{ "leocrotta",	'l',6,18,4,3,6,0 },
48.   	{ "mimic",		'M',7,3,7,3,4,0 },
49.   	{ "troll",		'T',7,12,4,2,6,0 },
50.   	{ "unicorn",		'u',8,24,5,1,10,0 },
51.   	{ "yeti",		'Y',5,15,6,1,6,0 },
52.   	{ "stalker",'I',8,12,3,4,4,0 },
53.   	{ "umber hulk",	'U',9,6,2,2,10,0 },
54.   	{ "vampire",	'V',8,12,1,1,6,0 },
55.   	{ "xorn",		'X',8,9,-2,4,6,0 },
56.   	{ "xan",		'x',7,18,-2,2,4,0 },
57.   	{ "zruty",		'z',9,8,3,3,6,0 },
58.   	{ "chameleon",		':',6,5,6,4,2,0 },
59.   	{ "dragon",		'D',10,9,-1,3,8,0 },
60.   	{ "ettin",		'e',10,12,3,2,8,0 },
61.   	{ "lurker above",	'~',10,3,3,0,0,0 },
62.   	{ "nurse",		'n',11,6,0,1,3,0 },
63.   	{ "trapper",		',',12,3,3,0,0,0 },
64.   	{ "purple worm",	'P',15,9,6,2,8,0 },
65.   	{ "demon",		'&',10,9,-4,1,4,0 },
66.   	{ "minotaur",		'm',15,15,6,4,8,0 },
67.   	{ "shopkeeper", 	'@', 10, 18, 0, 4, 8, sizeof(struct eshk) }
68.   };