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

Function next_shkp

src/shk.c:214–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214staticfn struct monst *
215next_shkp(struct monst *shkp, boolean withbill)
216{
217 for (; shkp; shkp = shkp->nmon) {
218 if (DEADMONSTER(shkp))
219 continue;
220 if (shkp->isshk && (ESHK(shkp)->billct || !withbill))
221 break;
222 }
223
224 if (shkp) {
225 if (ANGRY(shkp)) {
226 if (!ESHK(shkp)->surcharge)
227 rile_shk(shkp);
228 }
229 }
230 return shkp;
231}
232
233/* called in mon.c */
234void

Callers 12

same_priceFunction · 0.85
shopper_financial_reportFunction · 0.85
find_objownerFunction · 0.85
obfreeFunction · 0.85
angry_shk_existsFunction · 0.85
dopayFunction · 0.85
paybillFunction · 0.85
gem_learnedFunction · 0.85
alter_costFunction · 0.85
unpaid_costFunction · 0.85
fix_shop_damageFunction · 0.85
globby_bill_fixupFunction · 0.85

Calls 1

rile_shkFunction · 0.85

Tested by

no test coverage detected