| 1280 | } |
| 1281 | |
| 1282 | staticfn void |
| 1283 | mswingsm( |
| 1284 | struct monst *magr, /* attacker */ |
| 1285 | struct monst *mdef, /* defender */ |
| 1286 | struct obj *otemp) /* attacker's weapon */ |
| 1287 | { |
| 1288 | if (flags.verbose && !Blind && mon_visible(magr)) { |
| 1289 | boolean bash = (is_pole(otemp) && !is_art(otemp, ART_SNICKERSNEE) |
| 1290 | && (dist2(magr->mx, magr->my, mdef->mx, mdef->my) |
| 1291 | <= 2)); |
| 1292 | |
| 1293 | pline("%s %s %s%s %s at %s.", Monnam(magr), mswings_verb(otemp, bash), |
| 1294 | (otemp->quan > 1L) ? "one of " : "", mhis(magr), xname(otemp), |
| 1295 | mon_nam(mdef)); |
| 1296 | } |
| 1297 | } |
| 1298 | |
| 1299 | /* |
| 1300 | * Passive responses by defenders. Does not replicate responses already |
no test coverage detected