Log inGet started
Package

curves.module

Newest version

README.md

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.