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

Function enermod

src/exper.c:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25staticfn int
26enermod(int en)
27{
28 switch (Role_switch) {
29 case PM_CLERIC:
30 case PM_WIZARD:
31 return (2 * en);
32 case PM_HEALER:
33 case PM_KNIGHT:
34 return ((3 * en) / 2);
35 case PM_BARBARIAN:
36 case PM_VALKYRIE:
37 return ((3 * en) / 4);
38 default:
39 return en;
40 }
41}
42
43/* calculate spell power/energy points for new level */
44int

Callers 1

newpwFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected