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

Function count_achievements

src/insight.c:2493–2501  ·  view source on GitHub ↗

used to decide whether there are any achievements to display */

Source from the content-addressed store, hash-verified

2491
2492/* used to decide whether there are any achievements to display */
2493int
2494count_achievements(void)
2495{
2496 int i, acnt = 0;
2497
2498 for (i = 0; u.uachieved[i]; ++i)
2499 ++acnt;
2500 return acnt;
2501}
2502
2503/* convert a rank index to an achievement number; encode it when female
2504 in order to subsequently report gender-specific ranks accurately */

Callers 3

discloseFunction · 0.85
pluslvlFunction · 0.85
show_achievementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected