Remove armor tomes from equip order

This commit is contained in:
dr-carlos 2022-07-30 09:36:54 +09:30
parent e0df864c6c
commit ce1656a182

View file

@ -44,6 +44,12 @@ 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]; this.equip_order = result[0];
for (let i = 0; i < this.equip_order.length; i++) {
if (this.equip_order[i].get("type") === "armorTome") {
this.equip_order.pop(i);
i--;
}
}
// 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];
// How many skillpoints the build ended up with (5 number) // How many skillpoints the build ended up with (5 number)