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

Function clear_unpaid_obj

src/shk.c:308–315  ·  view source on GitHub ↗

clear the unpaid bit on a single object and its contents */

Source from the content-addressed store, hash-verified

306
307/* clear the unpaid bit on a single object and its contents */
308staticfn void
309clear_unpaid_obj(struct monst *shkp, struct obj *otmp)
310{
311 if (Has_contents(otmp))
312 clear_unpaid(shkp, otmp->cobj);
313 if (onbill(otmp, shkp, TRUE))
314 otmp->unpaid = 0;
315}
316
317/* clear the unpaid bit on all of the objects in the list */
318staticfn void

Callers 3

clear_unpaidFunction · 0.85
setpaidFunction · 0.85
globby_bill_fixupFunction · 0.85

Calls 2

clear_unpaidFunction · 0.85
onbillFunction · 0.85

Tested by

no test coverage detected