I keep getting an error getting an error on line 614 Which is
switch (this.statBuildOrder[i][0]) {
this.addStatPoint = function () {
var i, hardStats;
this.remaining = me.getStat(4);
for (i = 0; i < this.statBuildOrder.length; i += 1) {
switch (this.statBuildOrder[i][0]) {
case 0:
case "s":
case "str":
case "strength":
if (typeof this.statBuildOrder[i][1] === "string") {
switch (this.statBuildOrder[i][1]) {
case "all":
return this.useStats(0);
default:
break;
}
} else {
hardStats = this.getHardStats(0);
if (hardStats < this.statBuildOrder[i][1]) {
return this.useStats(0, this.statBuildOrder[i][1] - hardStats);
}
}
break;
case 1:
case "e":
case "enr":
case "energy":
if (typeof this.statBuildOrder[i][1] === "string") {
switch (this.statBuildOrder[i][1]) {
case "all":
return this.useStats(1);
default:
break;
}
} else {
hardStats = this.getHardStats(1);
if (hardStats < this.statBuildOrder[i][1]) {
return this.useStats(1, this.statBuildOrder[i][1] - hardStats);
}
}
break;
case 2:
case "d":
case "dex":
case "dexterity":
if (typeof this.statBuildOrder[i][1] === "string") {
switch (this.statBuildOrder[i][1]) {
case "block":
if (me.gametype === 1) {
if (this.getBlock() < this.block) {
return this.useStats(2, this.requiredDex());
}
}
break;
case "all":
return this.useStats(2);
default:
break;
}
} else {
hardStats = this.getHardStats(2);
if (hardStats < this.statBuildOrder[i][1]) {
return this.useStats(2, this.statBuildOrder[i][1] - hardStats);
}
}
break;