| 1377 | crawl = { "crawl", "Crawl", "falter", "Falter" }; |
| 1378 | |
| 1379 | const char * |
| 1380 | locomotion(const struct permonst *ptr, const char *def) |
| 1381 | { |
| 1382 | int locoindx = (*def != highc(*def)) ? 0 : 1; |
| 1383 | |
| 1384 | return (is_floater(ptr) ? levitate[locoindx] |
| 1385 | : (is_flyer(ptr) && ptr->msize <= MZ_SMALL) ? flys[locoindx] |
| 1386 | : (is_flyer(ptr) && ptr->msize > MZ_SMALL) ? flyl[locoindx] |
| 1387 | : slithy(ptr) ? slither[locoindx] |
| 1388 | : amorphous(ptr) ? ooze[locoindx] |
| 1389 | : !ptr->mmove ? immobile[locoindx] |
| 1390 | : nolimbs(ptr) ? crawl[locoindx] |
| 1391 | : def); |
| 1392 | } |
| 1393 | |
| 1394 | const char * |
| 1395 | stagger(const struct permonst *ptr, const char *def) |
no test coverage detected