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

Function subfrombill

src/shk.c:3693–3710  ·  view source on GitHub ↗

recursive check of unpaid objects within nested containers. */

Source from the content-addressed store, hash-verified

3691
3692/* recursive check of unpaid objects within nested containers. */
3693void
3694subfrombill(struct obj *obj, struct monst *shkp)
3695{
3696 struct obj *otmp;
3697
3698 sub_one_frombill(obj, shkp);
3699
3700 if (Has_contents(obj))
3701 for (otmp = obj->cobj; otmp; otmp = otmp->nobj) {
3702 if (otmp->oclass == COIN_CLASS)
3703 continue;
3704
3705 if (Has_contents(otmp))
3706 subfrombill(otmp, shkp);
3707 else
3708 sub_one_frombill(otmp, shkp);
3709 }
3710}
3711
3712staticfn long
3713stolen_container(

Callers 15

stealarmFunction · 0.85
stealFunction · 0.85
mpickobjFunction · 0.85
stealamuletFunction · 0.85
maybe_absorb_itemFunction · 0.85
potionhitFunction · 0.85
rlocoFunction · 0.85
dopushFunction · 0.85
check_shop_objFunction · 0.85
tipcontainer_checksFunction · 0.85
bill_dummy_objectFunction · 0.85
really_kick_objectFunction · 0.85

Calls 1

sub_one_frombillFunction · 0.85

Tested by

no test coverage detected