Merge pull request #182 from dr-carlos/tome-equip-order
Remove armor tomes from equip order
This commit is contained in:
commit
2b52264366
1 changed files with 7 additions and 1 deletions
|
@ -41,7 +41,13 @@ class Build{
|
|||
|
||||
// calc skillpoints requires statmaps only
|
||||
let result = calculate_skillpoints(this.equipment.map((x) => x.statMap), this.weapon.statMap);
|
||||
this.equip_order = result[0];
|
||||
this.equip_order = result[0].slice();
|
||||
for (let i = 0; i < this.equip_order.length; i++) {
|
||||
if (this.equip_order[i].get("category") === "tome" || this.equip_order[i].get("fixID") === true) {
|
||||
this.equip_order.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
// How many skillpoints the player had to assign (5 number)
|
||||
this.base_skillpoints = result[1];
|
||||
// How many skillpoints the build ended up with (5 number)
|
||||
|
|
Loading…
Reference in a new issue