Fix crafted skillpoint???

This commit is contained in:
b 2021-02-22 01:23:00 -06:00
parent 37b1e1c8a8
commit fd1340c3ca
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@ const url_tag = location.hash.slice(1);
console.log(url_base); console.log(url_base);
console.log(url_tag); console.log(url_tag);
const BUILD_VERSION = "6.9.32"; const BUILD_VERSION = "6.9.33";
function setTitle() { function setTitle() {
let text; let text;

View file

@ -137,7 +137,7 @@ function calculate_skillpoints(equipment, weapon) {
// Crafted skillpoint does not count initially. // Crafted skillpoint does not count initially.
for (const item of crafted) { for (const item of crafted) {
console.log(item) console.log(item)
result = apply_to_fit(skillpoints, item, has_skillpoint, activeSetCounts); result = apply_to_fit(skillpoints, item, allFalse.slice(), activeSetCounts);
console.log(result) console.log(result)
needed_skillpoints = result[0]; needed_skillpoints = result[0];
total_diff = result[1]; total_diff = result[1];
@ -146,6 +146,7 @@ function calculate_skillpoints(equipment, weapon) {
skillpoints_applied[i] += needed_skillpoints[i]; skillpoints_applied[i] += needed_skillpoints[i];
skillpoints[i] += needed_skillpoints[i]; skillpoints[i] += needed_skillpoints[i];
} }
total_applied += total_diff;
} }
if (total_applied >= best_total) { if (total_applied >= best_total) {