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

Function oracle_sound

src/sounds.c:180–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180staticfn boolean
181oracle_sound(struct monst *mtmp)
182{
183 if (mtmp->data != &mons[PM_ORACLE])
184 return FALSE;
185
186 /* and don't produce silly effects when she's clearly visible */
187 if (Hallucination || !canseemon(mtmp)) {
188 int hallu = Hallucination ? 1 : 0;
189 static const char *const ora_msg[5] = {
190 "a strange wind.", /* Jupiter at Dodona */
191 "convulsive ravings.", /* Apollo at Delphi */
192 "snoring snakes.", /* AEsculapius at Epidaurus */
193 "someone say \"No more woodchucks!\"",
194 "a loud ZOT!" /* both rec.humor.oracle */
195 };
196 You_hear1(ora_msg[rn2(3) + hallu * 2]);
197 }
198 return TRUE;
199}
200
201void
202dosounds(void)

Callers

nothing calls this directly

Calls 2

canseemonFunction · 0.85
rn2Function · 0.85

Tested by

no test coverage detected