for describing objects embedded in trees */
| 1988 | |
| 1989 | /* for describing objects embedded in trees */ |
| 1990 | boolean |
| 1991 | is_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 */ |
| 2002 | struct obj * |