MCPcopy Create free account
hub / github.com/NetHack/NetHack / zoo_mon_sound

Function zoo_mon_sound

src/sounds.c:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114staticfn boolean
115zoo_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
130staticfn boolean
131temple_priest_sound(struct monst *mtmp)

Callers

nothing calls this directly

Calls 2

mon_in_roomFunction · 0.85
rn2Function · 0.85

Tested by

no test coverage detected