From fe4350f8eef09dbe4c8aeaaa673697f8211659dc Mon Sep 17 00:00:00 2001 From: b Date: Mon, 11 Jan 2021 17:43:04 -0600 Subject: [PATCH] Fix skillpoint display and display health regen --- display.js | 2 +- index.html | 10 +++++----- test.js | 7 +++++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/display.js b/display.js index 437ab8b..29f46ea 100644 --- a/display.js +++ b/display.js @@ -775,7 +775,7 @@ function displayDefenseStats(parent_elem, build, insertSummary){ mock_item.set("fixID", true); let mock_minRolls = new Map(); mock_item.set("minRolls", mock_minRolls); - const stats = ["hp", "hpBonus", "fDef", "wDef", "aDef", "tDef", "eDef", + const stats = ["hp", "hpBonus", "hprRaw", "hprPct", "fDef", "wDef", "aDef", "tDef", "eDef", "fDefPct", "wDefPct", "aDefPct", "tDefPct", "eDefPct"]; for (const stat of stats) { if (rolledIDs.includes(stat)) { diff --git a/index.html b/index.html index c9fefef..30603ac 100644 --- a/index.html +++ b/index.html @@ -208,7 +208,7 @@
- +
@@ -222,7 +222,7 @@
- +
@@ -236,7 +236,7 @@
- +
@@ -250,7 +250,7 @@
- +
@@ -264,7 +264,7 @@
- +
diff --git a/test.js b/test.js index 12b8c34..76bcee7 100644 --- a/test.js +++ b/test.js @@ -11,7 +11,7 @@ console.log(url_tag); * END testing section */ -const BUILD_VERSION = "6.7"; +const BUILD_VERSION = "6.8"; document.getElementById("header").textContent = "WynnBuilder version "+BUILD_VERSION+" (db version "+DB_VERSION+")"; @@ -423,6 +423,9 @@ function calculateBuild(save_skp, skp){ const assigned = player_build.base_skillpoints; const skillpoints = player_build.total_skillpoints; + for (let i in skp_order){ //big bren + setText(skp_order[i] + "-skp-base", "Original Value: " + skillpoints[i]); + } if (save_skp) { // TODO: reduce duplicated code, @updateStats @@ -467,7 +470,7 @@ function calculateBuildStats() { setValue(skp_order[i] + "-skp", skillpoints[i]); let linebreak = document.createElement("br"); linebreak.classList.add("itemp"); - document.getElementById(skp_order[i] + "-skp-label").append(document.createElement("br")); + document.getElementById(skp_order[i] + "-skp-label"); setText(skp_order[i] + "-skp-pct", (skillPointsToPercentage(skillpoints[i])*100).toFixed(1).concat(skp_effects[i])); if (assigned[i] > 100) { let skp_warning = document.createElement("p");