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

Function ck_bag

src/pickup.c:2719–2723  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

2717 * also used by getobj() when picking a single item to stash
2718 */
2719int
2720ck_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. */
2726staticfn int

Callers 1

stash_okFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected