diff --git a/js/build.js b/js/build.js index 59d7d40..df9d416 100644 --- a/js/build.js +++ b/js/build.js @@ -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)