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

Function read_ok

src/read.c:314–324  ·  view source on GitHub ↗

getobj callback for object to read */

Source from the content-addressed store, hash-verified

312
313/* getobj callback for object to read */
314staticfn int
315read_ok(struct obj *obj)
316{
317 if (!obj)
318 return GETOBJ_EXCLUDE;
319
320 if (obj->oclass == SCROLL_CLASS || obj->oclass == SPBOOK_CLASS)
321 return GETOBJ_SUGGEST;
322
323 return GETOBJ_DOWNPLAY;
324}
325
326DISABLE_WARNING_FORMAT_NONLITERAL
327

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected