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

Function mswings

src/mhitu.c:129–141  ·  view source on GitHub ↗

monster swings obj */

Source from the content-addressed store, hash-verified

127
128/* monster swings obj */
129staticfn void
130mswings(
131 struct monst *mtmp, /* attacker */
132 struct obj *otemp, /* attacker's weapon */
133 boolean bash) /* True: polearm used at too close range */
134{
135 if (flags.verbose && !Blind && mon_visible(mtmp)) {
136 pline_mon(mtmp, "%s %s %s%s %s.", Monnam(mtmp),
137 mswings_verb(otemp, bash),
138 (otemp->quan > 1L) ? "one of " : "",
139 mhis(mtmp), xname(otemp));
140 }
141}
142
143/* return how a poison attack was delivered */
144const char *

Callers 1

mattackuFunction · 0.85

Calls 5

mon_visibleFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85
mswings_verbFunction · 0.85
xnameFunction · 0.85

Tested by

no test coverage detected