askchain() filter used by in_container(); * returns True if the container is intact and 'obj' isn't it, False if * container is gone (magic bag explosion) or 'obj' is the container itself; * also used by getobj() when picking a single item to stash */
| 2717 | * also used by getobj() when picking a single item to stash |
| 2718 | */ |
| 2719 | int |
| 2720 | ck_bag(struct obj *obj) |
| 2721 | { |
| 2722 | return (gc.current_container && obj != gc.current_container); |
| 2723 | } |
| 2724 | |
| 2725 | /* Returns: -1 to stop, 1 item was removed, 0 item was not removed. */ |
| 2726 | staticfn int |