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

Function container_gone

src/pickup.c:2902–2908  ·  view source on GitHub ↗

used by askchain() to check for magic bag explosion */

Source from the content-addressed store, hash-verified

2900
2901/* used by askchain() to check for magic bag explosion */
2902boolean
2903container_gone(int (*fn)(OBJ_P))
2904{
2905 /* result is only meaningful while use_container() is executing */
2906 return ((fn == in_container || fn == out_container)
2907 && !gc.current_container);
2908}
2909
2910staticfn void
2911explain_container_prompt(boolean more_containers)

Callers 1

askchainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected