* Return the permonst ptr for the race of the monster. * Returns correct pointer for non-polymorphed and polymorphed * player. It does not return a pointer to player role character. */
| 1356 | * player. It does not return a pointer to player role character. |
| 1357 | */ |
| 1358 | const struct permonst * |
| 1359 | raceptr(struct monst *mtmp) |
| 1360 | { |
| 1361 | if (mtmp == &gy.youmonst && !Upolyd) |
| 1362 | return &mons[gu.urace.mnum]; |
| 1363 | return mtmp->data; |
| 1364 | } |
| 1365 | |
| 1366 | typedef const char *const locoverbs[4]; |
| 1367 | static locoverbs levitate = { "float", "Float", "wobble", "Wobble" }, |