| 112 | } |
| 113 | |
| 114 | staticfn boolean |
| 115 | zoo_mon_sound(struct monst *mtmp) |
| 116 | { |
| 117 | if ((mtmp->msleeping || is_animal(mtmp->data)) |
| 118 | && mon_in_room(mtmp, ZOO)) { |
| 119 | int hallu = Hallucination ? 1 : 0, selection = rn2(2) + hallu; |
| 120 | static const char *const zoo_msg[3] = { |
| 121 | "a sound reminiscent of an elephant stepping on a peanut.", |
| 122 | "a sound reminiscent of a seal barking.", "Doctor Dolittle!", |
| 123 | }; |
| 124 | You_hear1(zoo_msg[selection]); |
| 125 | return TRUE; |
| 126 | } |
| 127 | return FALSE; |
| 128 | } |
| 129 | |
| 130 | staticfn boolean |
| 131 | temple_priest_sound(struct monst *mtmp) |
nothing calls this directly
no test coverage detected