for egg hatching; caller will apply "ing" suffix [the old message when a carried egg hatches was "its cries sound like {mommy,daddy}" regardless of what type of sound--if any--the creature made] */
| 614 | "its cries sound like {mommy,daddy}" |
| 615 | regardless of what type of sound--if any--the creature made] */ |
| 616 | const char * |
| 617 | cry_sound(struct monst *mtmp) |
| 618 | { |
| 619 | const char *ret = 0; |
| 620 | struct permonst *ptr = mtmp->data; |
| 621 | |
| 622 | /* a relatively small subset of MS_ sound values are used by oviparous |
| 623 | species so we don't try to supply something for every MS_ type */ |
| 624 | switch (ptr->msound) { |
| 625 | default: |
| 626 | case MS_SILENT: /* insects, arthropods, worms, sea creatures */ |
| 627 | /* "chitter": have silent critters make some noise |
| 628 | or the mommy/daddy gag when hatching doesn't work */ |
| 629 | ret = (ptr->mlet == S_EEL) ? "gurgle" : "chitter"; |
| 630 | break; |
| 631 | case MS_HISS: /* chickatrice, pyrolisk, snakes */ |
| 632 | ret = "hiss"; |
| 633 | break; |
| 634 | case MS_ROAR: /* baby dragons; have them growl instead of roar */ |
| 635 | case MS_GROWL: /* (none) */ |
| 636 | ret = "growl"; |
| 637 | break; |
| 638 | case MS_CHIRP: /* adult crocodiles bellow, babies chirp */ |
| 639 | ret = "chirp"; |
| 640 | break; |
| 641 | case MS_BUZZ: /* killer bees */ |
| 642 | ret = "buzz"; |
| 643 | break; |
| 644 | case MS_SQAWK: /* ravens */ |
| 645 | ret = "screech"; |
| 646 | break; |
| 647 | case MS_GRUNT: /* gargoyles */ |
| 648 | ret = "grunt"; |
| 649 | break; |
| 650 | case MS_MUMBLE: /* naga hatchlingss */ |
| 651 | ret = "mumble"; |
| 652 | break; |
| 653 | } |
| 654 | return ret; |
| 655 | } |
| 656 | |
| 657 | /* return True if mon is a gecko or seems to look like one (hallucination) */ |
| 658 | staticfn boolean |