I am confident I have finally nailed the formula used to convert between pet level and pet experience for the Bristlehog (Puny).
It was a quite tedious and time consuming excercise, with many hundreds of samples and more hours than I care to think of attempting curve fitting.
Internally, levels are (obviously) zero-based, while in the UI displayed as 1-based. Let's therefore, for the duration of this text, define
int_lvl = UI_lvl.XP - 1.
F.ex. a pet at level 2 with 15% XP would have int_lvl = 1.15.
Experience = int_lvl^2 * 24 + int_lvl * 30
Applying the quadratic formula all present should know (you are above the age of 13, right?)
ax^2 + bx + c=0
and how to solve x for any given a, b, and c, we find (after simplification) that
int_lvl = (sqrt(Experience * 96 + 900) - 30) / 48
A graph of the first ~9 levels looks like
Update 2014-11-01: Daikiba Ancient Strong seems to use the formula
Experience = int_lvl^2 * 160 + int_lvl * 200
Update 2015-04-24: That combined with later information leads to the conclusion it's really:
Experience = int_lvl^2 * int_val + int_lvl * (int_val * 1.25)
Where int_val is an internal value (just by coincident also an integer ), possibly derived from the later introduced "Metabolic Rate".
For the ones mathematically inclined, you see this is probably not how it's calculated internally, but it's nice and simple enough for most to understand, which is more important.
It was a quite tedious and time consuming excercise, with many hundreds of samples and more hours than I care to think of attempting curve fitting.
Internally, levels are (obviously) zero-based, while in the UI displayed as 1-based. Let's therefore, for the duration of this text, define
int_lvl = UI_lvl.XP - 1.
F.ex. a pet at level 2 with 15% XP would have int_lvl = 1.15.
Experience = int_lvl^2 * 24 + int_lvl * 30
Applying the quadratic formula all present should know (you are above the age of 13, right?)
ax^2 + bx + c=0
and how to solve x for any given a, b, and c, we find (after simplification) that
int_lvl = (sqrt(Experience * 96 + 900) - 30) / 48
A graph of the first ~9 levels looks like
Update 2014-11-01: Daikiba Ancient Strong seems to use the formula
Experience = int_lvl^2 * 160 + int_lvl * 200
Update 2015-04-24: That combined with later information leads to the conclusion it's really:
Experience = int_lvl^2 * int_val + int_lvl * (int_val * 1.25)
Where int_val is an internal value (just by coincident also an integer ), possibly derived from the later introduced "Metabolic Rate".
For the ones mathematically inclined, you see this is probably not how it's calculated internally, but it's nice and simple enough for most to understand, which is more important.
Last edited: