Separate cases a bit more cleanly, include -sp items in noboost
This commit is contained in:
parent
338e1931bc
commit
5daa7064cd
1 changed files with 5 additions and 2 deletions
|
@ -95,12 +95,15 @@ function calculate_skillpoints(equipment, weapon) {
|
||||||
if (item.get("crafted")) {
|
if (item.get("crafted")) {
|
||||||
crafted.push(item);
|
crafted.push(item);
|
||||||
}
|
}
|
||||||
|
// TODO hack: We will treat ALL set items as unsafe :(
|
||||||
|
else if (item.set !== null) {
|
||||||
|
consider.push(item);
|
||||||
|
}
|
||||||
else if (item.get("reqs").every(x => x === 0) && item.skillpoints.every(x => x >= 0)) {
|
else if (item.get("reqs").every(x => x === 0) && item.skillpoints.every(x => x >= 0)) {
|
||||||
// All reqless item without -skillpoints.
|
// All reqless item without -skillpoints.
|
||||||
fixed.push(item);
|
fixed.push(item);
|
||||||
}
|
}
|
||||||
// TODO hack: We will treat ALL set items as unsafe :(
|
else if (item.skillpoints.every(x => x <= 0)) {
|
||||||
else if (item.skillpoints.every(x => x === 0) && item.set === null) {
|
|
||||||
noboost.push(item);
|
noboost.push(item);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue