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

Function missum

src/uhitm.c:5197–5214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5195}
5196
5197void
5198missum(
5199 struct monst *mdef,
5200 struct attack *mattk,
5201 boolean wouldhavehit)
5202{
5203 if (wouldhavehit) /* monk is missing due to penalty for wearing suit */
5204 Your("armor is rather cumbersome...");
5205
5206 if (could_seduce(&gy.youmonst, mdef, mattk))
5207 You("pretend to be friendly to %s.", mon_nam(mdef));
5208 else if (canspotmon(mdef) && flags.verbose)
5209 You("miss %s.", mon_nam(mdef));
5210 else
5211 You("miss it.");
5212 if (!helpless(mdef))
5213 wakeup(mdef, TRUE);
5214}
5215
5216/* check whether equipment protects against knockback */
5217boolean

Callers 3

known_hitumFunction · 0.85
hmonasFunction · 0.85
kick_monsterFunction · 0.85

Calls 5

YourFunction · 0.85
could_seduceFunction · 0.85
YouFunction · 0.85
mon_namFunction · 0.85
wakeupFunction · 0.85

Tested by

no test coverage detected