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

Function get_strength_str

src/botl.c:20–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18staticfn void stat_update_time(void);
19
20char *
21get_strength_str(void)
22{
23 static char buf[32];
24 int st = ACURR(A_STR);
25
26 if (st > 18) {
27 if (st > STR18(100))
28 Sprintf(buf, "%2d", st - 100);
29 else if (st < STR18(100))
30 Sprintf(buf, "18/%02d", st - 18);
31 else
32 Sprintf(buf, "18/**");
33 } else
34 Sprintf(buf, "%-1d", st);
35
36 return buf;
37}
38
39void
40check_gold_symbol(void)

Callers 3

reroll_menuFunction · 0.85
do_statusline1Function · 0.85
botl.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected