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

Function clear_no_charge

src/shk.c:376–385  ·  view source on GitHub ↗

clear the no_charge bit on all of the objects in the list */

Source from the content-addressed store, hash-verified

374
375/* clear the no_charge bit on all of the objects in the list */
376staticfn void
377clear_no_charge(struct monst *shkp, struct obj *list)
378{
379 while (list) {
380 /* handle first element of list and any contents it may have */
381 clear_no_charge_obj(shkp, list);
382 /* move on to next element of list */
383 list = list->nobj;
384 }
385}
386
387/* clear no_charge from objects in pets' inventories belonging to shkp */
388staticfn void

Callers 4

clear_no_charge_objFunction · 0.85
clear_no_charge_petsFunction · 0.85
setpaidFunction · 0.85
hot_pursuitFunction · 0.85

Calls 1

clear_no_charge_objFunction · 0.85

Tested by

no test coverage detected