Fix positive spellcost%

This commit is contained in:
b 2021-01-11 22:22:38 -06:00
parent fe4350f8ee
commit a02cd0c794
2 changed files with 4 additions and 4 deletions

View file

@ -22,11 +22,11 @@ function expandItem(item, powders){
let val = (item[id] || 0); let val = (item[id] || 0);
if(val > 0){ // positive rolled IDs if(val > 0){ // positive rolled IDs
if (reversedIDs.includes(id)) { if (reversedIDs.includes(id)) {
maxRolls.set(id,idRound(val*1.3)); maxRolls.set(id,idRound(val*0.3));
minRolls.set(id,idRound(val*0.3)); minRolls.set(id,idRound(val*1.3));
} else { } else {
minRolls.set(id,idRound(val*0.3));
maxRolls.set(id,idRound(val*1.3)); maxRolls.set(id,idRound(val*1.3));
minRolls.set(id,idRound(val*0.3));
} }
}else if(val < 0){ //negative rolled IDs }else if(val < 0){ //negative rolled IDs
if (reversedIDs.includes(id)) { if (reversedIDs.includes(id)) {

View file

@ -11,7 +11,7 @@ console.log(url_tag);
* END testing section * END testing section
*/ */
const BUILD_VERSION = "6.8"; const BUILD_VERSION = "6.8.1";
document.getElementById("header").textContent = "WynnBuilder version "+BUILD_VERSION+" (db version "+DB_VERSION+")"; document.getElementById("header").textContent = "WynnBuilder version "+BUILD_VERSION+" (db version "+DB_VERSION+")";