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

Function is_rottable

src/mkobj.c:2288–2296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2286}
2287
2288boolean
2289is_rottable(struct obj *otmp)
2290{
2291 int otyp = otmp->otyp;
2292
2293 return (boolean) ((objects[otyp].oc_material <= WOOD
2294 && objects[otyp].oc_material != LIQUID)
2295 || objects[otyp].oc_material == DRAGON_HIDE);
2296}
2297
2298/*
2299 * These routines maintain the single-linked lists headed in level.objects[][]

Callers 7

obj_erode_typeFunction · 0.85
add_erosion_wordsFunction · 0.85
readobjnamFunction · 0.85
rottenfoodFunction · 0.85
mkobj_erosionsFunction · 0.85
erode_objFunction · 0.85
poly_objFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected