| 178 | } |
| 179 | |
| 180 | staticfn boolean |
| 181 | oracle_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 | |
| 201 | void |
| 202 | dosounds(void) |