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

Function adjust_gold_ok

src/invent.c:4926–4933  ·  view source on GitHub ↗

getobj callback for item to #adjust if gold is wonky; allows gold */

Source from the content-addressed store, hash-verified

4924
4925/* getobj callback for item to #adjust if gold is wonky; allows gold */
4926staticfn int
4927adjust_gold_ok(struct obj *obj)
4928{
4929 if (!obj)
4930 return GETOBJ_EXCLUDE;
4931
4932 return GETOBJ_SUGGEST;
4933}
4934
4935/* #adjust command
4936 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected