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

Function count_unidentified

src/invent.c:2697–2707  ·  view source on GitHub ↗

count the unidentified items */

Source from the content-addressed store, hash-verified

2695}
2696/* count the unidentified items */
2697int
2698count_unidentified(struct obj *objchn)
2699{
2700 int unid_cnt = 0;
2701 struct obj *obj;
2702
2703 for (obj = objchn; obj; obj = obj->nobj)
2704 if (not_fully_identified(obj))
2705 ++unid_cnt;
2706 return unid_cnt;
2707}
2708
2709/* dialog with user to identify a given number of items; 0 means all */
2710void

Callers 2

identify_packFunction · 0.85
invent.cFile · 0.85

Calls 1

not_fully_identifiedFunction · 0.85

Tested by

no test coverage detected