pc-hack

PC HACK 3.61 source code (archival)
git clone http://frotz.net/git/pc-hack.git
Log | Files | Refs

monst.c (2549B)


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