diff --git a/build.js b/build.js index e9c54b1..983fcdd 100644 --- a/build.js +++ b/build.js @@ -225,10 +225,16 @@ class Build{ const weapon = itemMap.get(equipment[8]); this.powders[4] = this.powders[4].slice(0,weapon.slots); this.weapon = expandItem(weapon, this.powders[4]); + if (equipment[8] !== "No Weapon") { + document.getElementsByClassName("powder-specials")[0].style.display = "grid"; + } else { + document.getElementsByClassName("powder-specials")[0].style.display = "none"; + } }else{ const weapon = itemMap.get("No Weapon"); this.powders[4] = this.powders[4].slice(0,weapon.slots); this.weapon = expandItem(weapon, this.powders[4]); + document.getElementsByClassName("powder-specials")[0].style.display = "none"; errors.push(new ItemNotFound(equipment[8], "weapon", true)); } diff --git a/builder.js b/builder.js index 8d798cf..f664d2e 100644 --- a/builder.js +++ b/builder.js @@ -464,7 +464,7 @@ function calculateBuild(save_skp, skp){ } for (let i of document.getElementsByClassName("hide-container-grid")) { i.style.display = "grid"; - } + } console.log(player_build.toString()); displayEquipOrder(document.getElementById("build-order"),player_build.equip_order); diff --git a/index.html b/index.html index 8efaa75..bd7c0dc 100644 --- a/index.html +++ b/index.html @@ -191,7 +191,7 @@

-
+