HOTFIX -- update "Original Value" skillpoint display
This commit is contained in:
parent
21773ab52d
commit
379ebb8224
1 changed files with 1 additions and 1 deletions
|
@ -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!!!
|
||||
|
|
Loading…
Add table
Reference in a new issue