| 24 | struct obj *); |
| 25 | |
| 26 | staticfn void |
| 27 | noises(struct monst *magr, struct attack *mattk) |
| 28 | { |
| 29 | boolean farq = (mdistu(magr) > 15); |
| 30 | |
| 31 | if (!Deaf && (farq != gf.far_noise || svm.moves - gn.noisetime > 10)) { |
| 32 | gf.far_noise = farq; |
| 33 | gn.noisetime = svm.moves; |
| 34 | You_hear("%s%s.", |
| 35 | (mattk->aatyp == AT_EXPL) ? "an explosion" : "some noises", |
| 36 | farq ? " in the distance" : ""); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | staticfn void |
| 41 | pre_mm_attack(struct monst *magr, struct monst *mdef) |