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

Function newuexp

src/exper.c:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11staticfn int enermod(int);
12
13long
14newuexp(int lev)
15{
16 if (lev < 1) /* for newuexp(u.ulevel - 1) when u.ulevel is 1 */
17 return 0L;
18 if (lev < 10)
19 return (10L * (1L << lev));
20 if (lev < 20)
21 return (10000L * (1L << (lev - 10)));
22 return (10000000L * ((long) (lev - 19)));
23}
24
25staticfn int
26enermod(int en)

Callers 6

losexpFunction · 0.85
newexplevelFunction · 0.85
pluslvlFunction · 0.85
rndexpFunction · 0.85
exp_percentageFunction · 0.85
background_enlightenmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected