Lines Matching refs:monst

12  * int cgood(x,y,itm,monst)Function to check location for emptiness
13 * int x,y,itm,monst;
27 * nospell(x,monst)Routine to return 1 if a spell doesn't affect a monster
28 * int x,monst;
30 * fullhit(xx) Function to return full damage against a monst (aka web)
57 * dirpoly(spnum) Routine to ask for a direction and polymorph a monst
69 * dropsomething(monst) Function to create an object when a monster dies
70 * int monst;
178 * int cgood(x,y,itm,monst) Function to check location for emptiness
179 * int x,y,itm,monst;
181 * Routine to return TRUE if a location does not have itm or monst there
183 * Enter with itm or monst TRUE or FALSE if checking it
185 * if monst==TRUE check for no monster at this location
189 cgood(int x, int y, int theitem, int monst)
198 if (monst == 0 || (mitem[x][y] == 0))
677 * nospell(x,monst) Routine to return 1 if a spell doesn't affect a monster
678 * int x,monst;
682 * Enter with the spell number in x, and the monster number in monst.
685 nospell(int x, int monst)
688 if (x >= SPNUM || monst >= MAXMONST + 8 || monst < 0 || x < 0)
689 return (0); /* bad spell or monst */
690 if ((tmp = spelweird[monst - 1][x]) == 0)
694 lprintf(spelmes[tmp], monster[monst].name);
1079 * dirpoly(spnum) Routine to ask for a direction and polymorph a monst
1121 int tmp, monst, damag = 0, flag;
1125 if ((monst = mitem[x][y]) == 0)
1129 tmp = monster[monst].armorclass + c[LEVEL] + c[DEXTERITY] +
1146 if ((monst == RUSTMONSTER) || (monst == DISENCHANTRESS) || (monst == CUBE))
1155 if (monst == VAMPIRE)
1173 int monst;
1177 monst = mitem[x][y];
1184 stealth[x][y] = 1; /* make sure hitting monst breaks stealth
1187 switch (monst) { /* if a dragon and orb(s) of dragon slaying */
1198 if (hitp[x][y] > monster[monst].hitpoints)
1199 hitp[x][y] = monster[monst].hitpoints;
1205 raiseexperience((long) monster[monst].experience);
1206 amt = monster[monst].gold;
1209 dropsomething(monst);
1294 * dropsomething(monst) Function to create an object when a monster dies
1295 * int monst;
1302 dropsomething(int monst)
1304 switch (monst) {