| 3061 | } |
| 3062 | |
| 3063 | staticfn void |
| 3064 | dropped_container( |
| 3065 | struct obj *obj, |
| 3066 | struct monst *shkp, |
| 3067 | boolean sale) |
| 3068 | { |
| 3069 | struct obj *otmp; |
| 3070 | |
| 3071 | /* the "top" container is treated in the calling fn */ |
| 3072 | for (otmp = obj->cobj; otmp; otmp = otmp->nobj) { |
| 3073 | if (otmp->oclass == COIN_CLASS) |
| 3074 | continue; |
| 3075 | |
| 3076 | if (!otmp->unpaid && !(sale && saleable(shkp, otmp))) |
| 3077 | otmp->no_charge = 1; |
| 3078 | |
| 3079 | if (Has_contents(otmp)) |
| 3080 | dropped_container(otmp, shkp, sale); |
| 3081 | } |
| 3082 | } |
| 3083 | |
| 3084 | void |
| 3085 | picked_container(struct obj *obj) |