MCPcopy Index your code
hub / github.com/NetHack/NetHack / is_treefruit

Function is_treefruit

src/mkobj.c:1990–1999  ·  view source on GitHub ↗

for describing objects embedded in trees */

Source from the content-addressed store, hash-verified

1988
1989/* for describing objects embedded in trees */
1990boolean
1991is_treefruit(struct obj *otmp)
1992{
1993 int fruitidx;
1994
1995 for (fruitidx = 0; fruitidx < SIZE(treefruits); ++fruitidx)
1996 if (treefruits[fruitidx] == otmp->otyp)
1997 return TRUE;
1998 return FALSE;
1999}
2000
2001/* create a stack of N gold pieces; never returns Null */
2002struct obj *

Callers 1

look_at_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected