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

Function n_or_more

src/pickup.c:459–465  ·  view source on GitHub ↗

query_objlist callback: return TRUE if obj's count is >= reference value */

Source from the content-addressed store, hash-verified

457
458/* query_objlist callback: return TRUE if obj's count is >= reference value */
459staticfn boolean
460n_or_more(struct obj *obj)
461{
462 if (obj == uchain)
463 return FALSE;
464 return (boolean) (obj->quan >= gv.val_for_n_or_more);
465}
466
467/* check valid_menu_classes[] for an entry; also used by askchain() */
468boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected