HOTFIX: Patch equip order display bug
This commit is contained in:
parent
384f985094
commit
5460b35319
1 changed files with 5 additions and 6 deletions
11
js/build.js
11
js/build.js
|
@ -41,12 +41,11 @@ class Build{
|
||||||
|
|
||||||
// calc skillpoints requires statmaps only
|
// calc skillpoints requires statmaps only
|
||||||
let result = calculate_skillpoints(this.equipment.map((x) => x.statMap), this.weapon.statMap);
|
let result = calculate_skillpoints(this.equipment.map((x) => x.statMap), this.weapon.statMap);
|
||||||
this.equip_order = result[0].slice();
|
const _equip_order = result[0].slice();
|
||||||
for (let i = 0; i < this.equip_order.length; i++) {
|
this.equip_order = [];
|
||||||
if (this.equip_order[i].get("category") === "tome" || this.equip_order[i].get("fixID") === true) {
|
for (const item of _equip_order) {
|
||||||
this.equip_order.splice(i, 1);
|
if (item.get('category') === 'tome' || item.has('NONE')) { continue; }
|
||||||
i--;
|
this.equip_order.push(item);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// How many skillpoints the player had to assign (5 number)
|
// How many skillpoints the player had to assign (5 number)
|
||||||
this.base_skillpoints = result[1];
|
this.base_skillpoints = result[1];
|
||||||
|
|
Loading…
Reference in a new issue