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

Function leather_cover

src/eat.c:2608–2618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2606staticfn boolean leather_cover(struct obj *);
2607
2608staticfn boolean
2609leather_cover(struct obj *otmp)
2610{
2611 const char *odesc = OBJ_DESCR(objects[otmp->otyp]);
2612
2613 if (odesc && (otmp->oclass == SPBOOK_CLASS)) {
2614 if (!strcmp(odesc, "leather"))
2615 return TRUE;
2616 }
2617 return FALSE;
2618}
2619#endif
2620
2621/*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected