recursive check of unpaid objects within nested containers. */
| 3691 | |
| 3692 | /* recursive check of unpaid objects within nested containers. */ |
| 3693 | void |
| 3694 | subfrombill(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 | |
| 3712 | staticfn long |
| 3713 | stolen_container( |
no test coverage detected