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

Function ia_checkfile

src/pager.c:806–815  ·  view source on GitHub ↗

used to decide whether the context-sensitive inventory action menu for item 'otmp' should include the "/ - look up this item" choice */

Source from the content-addressed store, hash-verified

804/* used to decide whether the context-sensitive inventory action menu for
805 item 'otmp' should include the "/ - look up this item" choice */
806boolean
807ia_checkfile(struct obj *otmp)
808{
809 char itemnam[BUFSZ];
810
811 /* singular() of xname() of otmp is what "/i" looks up */
812 Strcpy(itemnam, singular(otmp, xname));
813 return checkfile(itemnam, (struct permonst *) 0,
814 chkfilIaCheck | chkfilDontAsk, (char *) 0);
815}
816
817/*
818 * Look in the "data" file for more info. Called if the user typed in the

Callers 1

itemactionsFunction · 0.85

Calls 2

singularFunction · 0.85
checkfileFunction · 0.85

Tested by

no test coverage detected