So looking at the JS, it shouldn't be too hard to short circuit the previous XP <
LVL conversions, and just * or / by 12.
Try this:
--- cbtools.js.old 2010-03-04 10:38:57.825028383 -0500
+++ cbtools.js 2010-03-04 10:40:11.099028169 -0500
@@ -45,6 +45,7 @@
}
function CalcObj(size) {
+ var cost = 12
var exp = new Array (size)
exp[0] = {max: 20, total: 0}
for (let i = 1; i < size; ++i)
@@ -54,19 +55,21 @@
}
this.lvl = function(x) {
- var cost = 0
- for (let i = 0; i < exp.length; ++i)
- if (x
exp[i].total)
- cost = i
- return (validnum(exp[cost].max + ( (x - exp[cost].total) / (cost + 1) )))
+// var cost = 0
+// for (let i = 0; i < exp.length; ++i)
+// if (x
exp[i].total)
+// cost = i
+// return (validnum(exp[cost].max + ( (x - exp[cost].total) / (cost + 1) )))
+ return (x / cost)
}
this.xp = function(x) {
- var cost = 0
- for (let i = 0; i < exp.length; ++i)
- if (x
exp[i].max)
- cost = i
- return (validnum(exp[cost].total + ( (x - exp[cost].max) * (cost + 1) )))
+// var cost = 0
+// for (let i = 0; i < exp.length; ++i)
+// if (x
exp[i].max)
+// cost = i
+// return (validnum(exp[cost].total + ( (x - exp[cost].max) * (cost + 1) )))
+ return (x * cost)
}
}