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

Function fruit_from_indx

src/objnam.c:430–439  ·  view source on GitHub ↗

look up a named fruit by index (1..127) */

Source from the content-addressed store, hash-verified

428
429/* look up a named fruit by index (1..127) */
430struct fruit *
431fruit_from_indx(int indx)
432{
433 struct fruit *f;
434
435 for (f = gf.ffruit; f; f = f->nextf)
436 if (f->fid == indx)
437 break;
438 return f;
439}
440
441/* look up a named fruit by name */
442struct fruit *

Callers 2

goodfruitFunction · 0.85
xname_flagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected