From a02cd0c79410ea7c07f569aee358bc7cf2d36ba6 Mon Sep 17 00:00:00 2001 From: b Date: Mon, 11 Jan 2021 22:22:38 -0600 Subject: [PATCH] Fix positive spellcost% --- display.js | 6 +++--- test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/display.js b/display.js index 29f46ea..6ade78f 100644 --- a/display.js +++ b/display.js @@ -22,11 +22,11 @@ function expandItem(item, powders){ let val = (item[id] || 0); if(val > 0){ // positive rolled IDs if (reversedIDs.includes(id)) { - maxRolls.set(id,idRound(val*1.3)); - minRolls.set(id,idRound(val*0.3)); + maxRolls.set(id,idRound(val*0.3)); + minRolls.set(id,idRound(val*1.3)); } else { - minRolls.set(id,idRound(val*0.3)); maxRolls.set(id,idRound(val*1.3)); + minRolls.set(id,idRound(val*0.3)); } }else if(val < 0){ //negative rolled IDs if (reversedIDs.includes(id)) { diff --git a/test.js b/test.js index 76bcee7..6b8d88f 100644 --- a/test.js +++ b/test.js @@ -11,7 +11,7 @@ console.log(url_tag); * 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+")";