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

Function any_obj_ok

src/invent.c:1709–1715  ·  view source on GitHub ↗

getobj callback that allows any object - but not hands. */

Source from the content-addressed store, hash-verified

1707
1708/* getobj callback that allows any object - but not hands. */
1709int
1710any_obj_ok(struct obj *obj)
1711{
1712 if (obj)
1713 return GETOBJ_SUGGEST;
1714 return GETOBJ_EXCLUDE;
1715}
1716
1717/* return string describing your hands based on action. */
1718staticfn char *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected