|
|
|
@@ -863,19 +863,26 @@ function createUpgrades() { |
|
|
|
button.classList.add("hidden"); |
|
|
|
button.id = "upgrade-" + key; |
|
|
|
|
|
|
|
const holder = document.createElement("div"); |
|
|
|
holder.classList.add("upgrade-icon-holder"); |
|
|
|
button.appendChild(holder); |
|
|
|
|
|
|
|
if (typeof(value.icon) == "object") { |
|
|
|
value.icon.forEach(icon => { |
|
|
|
let upgradeIcon = document.createElement("i"); |
|
|
|
upgradeIcon.classList.add("fas"); |
|
|
|
upgradeIcon.classList.add(icon.icon); |
|
|
|
upgradeIcon.style.color = icon.color; |
|
|
|
button.appendChild(upgradeIcon); |
|
|
|
holder.appendChild(upgradeIcon); |
|
|
|
if (icon.transform) { |
|
|
|
upgradeIcon.style.transform = icon.transform; |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
let upgradeIcon = document.createElement("i"); |
|
|
|
upgradeIcon.classList.add("fas"); |
|
|
|
upgradeIcon.classList.add(value.icon); |
|
|
|
button.appendChild(upgradeIcon); |
|
|
|
holder.appendChild(upgradeIcon); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|