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

Function noises

src/mhitm.c:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 struct obj *);
25
26staticfn void
27noises(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
40staticfn void
41pre_mm_attack(struct monst *magr, struct monst *mdef)

Callers 3

missmmFunction · 0.85
hitmmFunction · 0.85
explmmFunction · 0.85

Calls 1

You_hearFunction · 0.85

Tested by

no test coverage detected