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

Function missmm

src/mhitm.c:75–91  ·  view source on GitHub ↗

feedback for when a monster-vs-monster attack misses */

Source from the content-addressed store, hash-verified

73
74/* feedback for when a monster-vs-monster attack misses */
75staticfn void
76missmm(
77 struct monst *magr, /* attacker */
78 struct monst *mdef, /* defender */
79 struct attack *mattk) /* attack and damage types */
80{
81 pre_mm_attack(magr, mdef);
82
83 if (gv.vis) {
84 pline("%s %s %s.", Monnam(magr),
85 (magr->mcan || !could_seduce(magr, mdef, mattk)) ? "misses"
86 : "pretends to be friendly to",
87 mon_nam_too(mdef, magr));
88 } else {
89 noises(magr, mattk);
90 }
91}
92
93/*
94 * fightm() -- fight some other monster

Callers 1

mattackmFunction · 0.85

Calls 6

pre_mm_attackFunction · 0.85
MonnamFunction · 0.85
could_seduceFunction · 0.85
mon_nam_tooFunction · 0.85
noisesFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected