Skip to content

Commit

Permalink
New experience curve. This should allow for a little easier time leve…
Browse files Browse the repository at this point in the history
…ling up. It kind of walks between EvilHack's and FIQ's XP curves. When we reach level 25, we return to the high EvilHack experience requirements.

1	        0
2	       20
3	       40
4	       80
5	      160
6	      320
7	      640
8	    1 280
9	    2 560
10	    5 120
11	   10 000
12	   15 000
13	   22 000
14	   33 000
15	   50 000
16	   75 000
17	  113 000
18	  170 000
19	  256 000
20	  384 000
21	  576 000
22	  864 000
23	1 297 000
24	1 946 000
25	3 200 000
26	3 520 000
27	3 840 000
28	4 160 000
29	4 480 000
30	4 800 000
  • Loading branch information
elunna committed Oct 30, 2023
1 parent 462ceed commit a157676
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/exper.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@ long
newuexp(lev)
int lev;
{
double newlev = 1.0;
long res;
if (lev < 1) /* for newuexp(u.ulevel - 1) when u.ulevel is 1 */
return 0L;
if (lev < 10)
return (10L * (1L << lev));
if (lev < 17)
return (10000L * (1L << (lev - 10)));
if (lev < 24) {
for (int i = 0; i < lev - 10; i++)
newlev *= 1.5;
res = 10000L * newlev;

if (lev > 10)
res = res - (res % 1000); /* Trim off small digits */
return res;
}
return (320000L * ((long) (lev - 14)));
}

Expand Down

0 comments on commit a157676

Please sign in to comment.