diff --git a/Javascript/platonic.js b/Javascript/platonic.js index afd90503..d6a5b57d 100644 --- a/Javascript/platonic.js +++ b/Javascript/platonic.js @@ -253,6 +253,20 @@ function createPlatonicDescription(index) { } } +function updatePlatonicUpgradeBG(i) { + let a = document.getElementById("platUpg" + i); + + if (player.platonicUpgrades[i] === 0) { + a.style.backgroundColor = "black"; + } + if (player.platonicUpgrades[i] > 0 && player.platonicUpgrades[i] < platUpgradeBaseCosts[i].maxLevel) { + a.style.backgroundColor = "purple"; + } + if (player.platonicUpgrades[i] === platUpgradeBaseCosts[i].maxLevel) { + a.style.backgroundColor = "green"; + } +} + function buyPlatonicUpgrades(index) { let resourceCheck = checkPlatonicUpgrade(index) if (resourceCheck.canBuy) { @@ -266,4 +280,5 @@ function buyPlatonicUpgrades(index) { player.wowAbyssals -= platUpgradeBaseCosts[index].abyssals } createPlatonicDescription(index) + updatePlatonicUpgradeBG(index); } \ No newline at end of file diff --git a/Pictures/PlatonicUpgrade1.png b/Pictures/PlatonicUpgrade1.png index 09238a85..f25095c9 100644 Binary files a/Pictures/PlatonicUpgrade1.png and b/Pictures/PlatonicUpgrade1.png differ diff --git a/Pictures/PlatonicUpgrade10.png b/Pictures/PlatonicUpgrade10.png index 41bfd5fa..553fc2ee 100644 Binary files a/Pictures/PlatonicUpgrade10.png and b/Pictures/PlatonicUpgrade10.png differ diff --git a/Pictures/PlatonicUpgrade11.png b/Pictures/PlatonicUpgrade11.png index d03450a4..6f46a5f9 100644 Binary files a/Pictures/PlatonicUpgrade11.png and b/Pictures/PlatonicUpgrade11.png differ diff --git a/Pictures/PlatonicUpgrade12.png b/Pictures/PlatonicUpgrade12.png index a40df8c8..62525422 100644 Binary files a/Pictures/PlatonicUpgrade12.png and b/Pictures/PlatonicUpgrade12.png differ diff --git a/Pictures/PlatonicUpgrade13.png b/Pictures/PlatonicUpgrade13.png index ad6b8b8f..7da144e9 100644 Binary files a/Pictures/PlatonicUpgrade13.png and b/Pictures/PlatonicUpgrade13.png differ diff --git a/Pictures/PlatonicUpgrade14.png b/Pictures/PlatonicUpgrade14.png index ac4058e5..710789fe 100644 Binary files a/Pictures/PlatonicUpgrade14.png and b/Pictures/PlatonicUpgrade14.png differ diff --git a/Pictures/PlatonicUpgrade15.png b/Pictures/PlatonicUpgrade15.png index 78a2b6c5..ca91bcde 100644 Binary files a/Pictures/PlatonicUpgrade15.png and b/Pictures/PlatonicUpgrade15.png differ diff --git a/Pictures/PlatonicUpgrade2.png b/Pictures/PlatonicUpgrade2.png index b3ed727b..d42f74b4 100644 Binary files a/Pictures/PlatonicUpgrade2.png and b/Pictures/PlatonicUpgrade2.png differ diff --git a/Pictures/PlatonicUpgrade3.png b/Pictures/PlatonicUpgrade3.png index 340fa2d0..1cefb58b 100644 Binary files a/Pictures/PlatonicUpgrade3.png and b/Pictures/PlatonicUpgrade3.png differ diff --git a/Pictures/PlatonicUpgrade4.png b/Pictures/PlatonicUpgrade4.png index fbdcfc69..a95b48dc 100644 Binary files a/Pictures/PlatonicUpgrade4.png and b/Pictures/PlatonicUpgrade4.png differ diff --git a/Pictures/PlatonicUpgrade5.png b/Pictures/PlatonicUpgrade5.png index 1b8cf18b..aca8cb19 100644 Binary files a/Pictures/PlatonicUpgrade5.png and b/Pictures/PlatonicUpgrade5.png differ diff --git a/Pictures/PlatonicUpgrade6.png b/Pictures/PlatonicUpgrade6.png index 73c28dd9..90ba715f 100644 Binary files a/Pictures/PlatonicUpgrade6.png and b/Pictures/PlatonicUpgrade6.png differ diff --git a/Pictures/PlatonicUpgrade7.png b/Pictures/PlatonicUpgrade7.png index b9a77045..483d2c11 100644 Binary files a/Pictures/PlatonicUpgrade7.png and b/Pictures/PlatonicUpgrade7.png differ diff --git a/Pictures/PlatonicUpgrade8.png b/Pictures/PlatonicUpgrade8.png index 5117849f..d1122cea 100644 Binary files a/Pictures/PlatonicUpgrade8.png and b/Pictures/PlatonicUpgrade8.png differ diff --git a/Pictures/PlatonicUpgrade9.png b/Pictures/PlatonicUpgrade9.png index 939ca900..fbb129c1 100644 Binary files a/Pictures/PlatonicUpgrade9.png and b/Pictures/PlatonicUpgrade9.png differ diff --git a/Pictures/desktop.ini b/Pictures/desktop.ini new file mode 100644 index 00000000..1c50b982 --- /dev/null +++ b/Pictures/desktop.ini @@ -0,0 +1,2 @@ +[LocalizedFileNames] +PlatonicUpgrade1.png=@PlatonicUpgrade1,0 diff --git a/Synergism.js b/Synergism.js index 10e0ae6f..bd7c1169 100644 --- a/Synergism.js +++ b/Synergism.js @@ -1077,6 +1077,9 @@ function loadSynergy() { for (let j = 1; j <= 50; j++) { updateCubeUpgradeBG(j); } + for (let j = 1; j <= 15; j++) { + updatePlatonicUpgradeBG(j); + } player.subtabNumber = 0; runescreen = "runes"; diff --git a/index.html b/index.html index fd1e6614..2cbf1845 100644 --- a/index.html +++ b/index.html @@ -2150,26 +2150,26 @@
- - - - - - + + + + + + - - - - - + + + + + - - - - - - + + + + + +