| 5603 | RESTORE_WARNING_FORMAT_NONLITERAL |
| 5604 | |
| 5605 | staticfn void |
| 5606 | kops_gone(boolean silent) |
| 5607 | { |
| 5608 | int cnt = 0; |
| 5609 | struct monst *mtmp, *mtmp2; |
| 5610 | |
| 5611 | for (mtmp = fmon; mtmp; mtmp = mtmp2) { |
| 5612 | mtmp2 = mtmp->nmon; |
| 5613 | if (DEADMONSTER(mtmp)) |
| 5614 | continue; |
| 5615 | if (mtmp->data->mlet == S_KOP) { |
| 5616 | if (canspotmon(mtmp)) |
| 5617 | cnt++; |
| 5618 | mongone(mtmp); |
| 5619 | } |
| 5620 | } |
| 5621 | if (cnt && !silent) |
| 5622 | pline_The("Kop%s (disappointed) vanish%s into thin air.", |
| 5623 | plur(cnt), (cnt == 1) ? "es" : ""); |
| 5624 | } |
| 5625 | |
| 5626 | staticfn long |
| 5627 | cost_per_charge( |
no test coverage detected