From 379ebb8224212d75b7f1c3fa0ef6b7b0db205d07 Mon Sep 17 00:00:00 2001 From: hppeng Date: Sun, 26 Jun 2022 05:44:10 -0700 Subject: [PATCH] HOTFIX -- update "Original Value" skillpoint display --- js/builder_graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/builder_graph.js b/js/builder_graph.js index 928a5c3..3b390d7 100644 --- a/js/builder_graph.js +++ b/js/builder_graph.js @@ -721,6 +721,7 @@ class DisplayBuildWarningsNode extends ComputeNode { let total_assigned = 0; for (let i in skp_order){ //big bren const assigned = skillpoints[i] - base_totals[i] + min_assigned[i] + setText(skp_order[i] + "-skp-base", "Original: " + base_totals[i]); setText(skp_order[i] + "-skp-assign", "Assign: " + assigned); setValue(skp_order[i] + "-skp", skillpoints[i]); let linebreak = document.createElement("br"); @@ -908,7 +909,6 @@ class SkillPointSetterNode extends ComputeNode { if (input_map.size !== 1) { throw "SkillPointSetterNode accepts exactly one input (build)"; } const [build] = input_map.values(); // Extract values, pattern match it into size one list and bind to first element for (const [idx, elem] of skp_order.entries()) { - setText(elem + "-skp-base", "Original: " + build.base_skillpoints[idx]); document.getElementById(elem+'-skp').value = build.total_skillpoints[idx]; } // NOTE: DO NOT merge these loops for performance reasons!!!