▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage progressionKit.package·originates fromworld 2c97e80f-d…
curves
XP curves as pure functions: `linear`, `quadratic`, `exponential` and `table`, each with a level cap. `make(spec)` builds one, `need(curve, level)` is the XP from a level to the next, `totalFor(curve, level)` the XP to reach a level, `levelFor(curve, totalXp)` turns a total into…
by·posted 6d ago
What it does
progressionKit.curves
XP curves as pure functions: linear, quadratic, exponential and table, each with a level cap. make(spec) builds one, need(curve, level) is the XP from a level to the next, totalFor(curve, level) the XP to reach a level, levelFor(curve, totalXp) turns a total into level, XP into it, XP it needs and progress. A level is always derived from total XP, so swapping curves never loses progress.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.