This commit is contained in:
b 2021-05-06 11:37:34 -07:00
parent 9124235eec
commit 033f11292b
4 changed files with 18 additions and 7 deletions

View file

@ -2,16 +2,16 @@
* @param skp - the integer skillpoint count to be converted * @param skp - the integer skillpoint count to be converted
*/ */
function skillPointsToPercentage(skp){ function skillPointsToPercentage(skp){
/*if (skp<=0){ if (skp<=0){
return 0.0; return 0.0;
}else if(skp>=150){ }else if(skp>=150){
return 0.808; return 0.808;
}else{ }else{
return (-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771); return (-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771);
//return(-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771).toFixed(3); //return(-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771).toFixed(3);
}*/ }
//return Math.min(Math.max(0.00,(-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771)),.808); //return Math.min(Math.max(0.00,(-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771)),.808);
return clamp((-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771), 0.00, 0.808); //return clamp((-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771), 0.00, 0.808);
} }
/*Turns the input amount of levels into skillpoints available. /*Turns the input amount of levels into skillpoints available.
@ -39,4 +39,4 @@ function levelToHPBase(level){
}else{ //good level }else{ //good level
return 5*level + 5; return 5*level + 5;
} }
} }

View file

@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1);
// console.log(url_tag); // console.log(url_tag);
const BUILD_VERSION = "7.0.5"; const BUILD_VERSION = "7.0.6";
function setTitle() { function setTitle() {
let text; let text;

View file

@ -11,7 +11,7 @@
"lvl": 60, "lvl": 60,
"hprPct": 30, "hprPct": 30,
"mr": 3, "mr": 3,
"strReq": 50, "strReq": 0,
"dexReq": 0, "dexReq": 0,
"intReq": 50, "intReq": 50,
"agiReq": 50, "agiReq": 50,
@ -24,7 +24,9 @@
"expd": 25, "expd": 25,
"fDamPct": 30, "fDamPct": 30,
"wDamPct": 35, "wDamPct": 35,
"aDefPct": -90,
"type": "helmet", "type": "helmet",
"restrict": "Untradable",
"id": 3553 "id": 3553
}, },
{ {
@ -49,7 +51,10 @@
"ms": 2, "ms": 2,
"mdRaw": 1675, "mdRaw": 1675,
"eDamPct": 20, "eDamPct": 20,
"spd": -10,
"atkTier": -13,
"type": "chestplate", "type": "chestplate",
"restrict": "Untradable",
"id": 3554 "id": 3554
}, },
{ {
@ -80,6 +85,7 @@
"eDamPct": 15, "eDamPct": 15,
"spPct2": -67, "spPct2": -67,
"type": "boots", "type": "boots",
"restrict": "Untradable",
"id": 3555 "id": 3555
}, },
{ {
@ -104,6 +110,8 @@
"def": 0, "def": 0,
"sdPct": 6, "sdPct": 6,
"wDamPct": 8, "wDamPct": 8,
"spd": -10,
"fDefPct": -8,
"type": "ring", "type": "ring",
"id": 3556 "id": 3556
}, },
@ -137,6 +145,7 @@
"mr": -1, "mr": -1,
"ls": 110, "ls": 110,
"sdRaw": 110, "sdRaw": 110,
"hpBonus": -850,
"type": "wand", "type": "wand",
"id": 3557 "id": 3557
}, },
@ -170,6 +179,8 @@
"ms": 2, "ms": 2,
"wDamPct": 15, "wDamPct": 15,
"eDamPct": 24, "eDamPct": 24,
"fDefPct": -20,
"hprRaw": -75,
"type": "leggings", "type": "leggings",
"id": 3558 "id": 3558
}, },

File diff suppressed because one or more lines are too long