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

Function kops_gone

src/shk.c:5605–5624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5603RESTORE_WARNING_FORMAT_NONLITERAL
5604
5605staticfn void
5606kops_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
5626staticfn long
5627cost_per_charge(

Callers 2

home_shkFunction · 0.85
make_happy_shoppersFunction · 0.85

Calls 2

mongoneFunction · 0.85
pline_TheFunction · 0.85

Tested by

no test coverage detected