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

Function adjust_ok

src/invent.c:4916–4923  ·  view source on GitHub ↗

normal getobj callback for item to #adjust; excludes gold */

Source from the content-addressed store, hash-verified

4914
4915/* normal getobj callback for item to #adjust; excludes gold */
4916staticfn int
4917adjust_ok(struct obj *obj)
4918{
4919 if (!obj || obj->oclass == COIN_CLASS)
4920 return GETOBJ_EXCLUDE;
4921
4922 return GETOBJ_SUGGEST;
4923}
4924
4925/* getobj callback for item to #adjust if gold is wonky; allows gold */
4926staticfn int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected