getobj callback for object to be stashed into a container */
| 2954 | |
| 2955 | /* getobj callback for object to be stashed into a container */ |
| 2956 | staticfn int |
| 2957 | stash_ok(struct obj *obj) |
| 2958 | { |
| 2959 | if (!obj) |
| 2960 | return GETOBJ_EXCLUDE; |
| 2961 | |
| 2962 | /* downplay the container being stashed into */ |
| 2963 | if (!ck_bag(obj)) |
| 2964 | return GETOBJ_EXCLUDE_SELECTABLE; |
| 2965 | /* Possible extension: downplay things too big to fit into containers (in |
| 2966 | * which case extract in_container()'s logic.) */ |
| 2967 | |
| 2968 | return GETOBJ_SUGGEST; |
| 2969 | } |
| 2970 | |
| 2971 | int |
| 2972 | use_container( |