diff --git a/script.js b/script.js index d81e177..f28a108 100644 --- a/script.js +++ b/script.js @@ -28,7 +28,7 @@ function updateNumberOnScroll(event) { } // Upgrade Shop -upgrades = [1000, 5000, 10000, 20000, 40000, 80000, 150000, 300000, 500000, 1000000] +upgrades = [1000, 5000, 10000, 20000, 40000, 80000, 150000, 300000, 500000, 1000000]; changes = [2, 4, 8, 15, 30, 50, 100, 250, 500, 1000]; function upgradeButtonClick() { if (currentNumber >= upgrades[scrollsPerScrollLevel]) { @@ -48,8 +48,8 @@ function upgradeButtonClick() { } } -upgrades = [1000, 5000, 10000, 20000, 40000, 80000, 150000, 300000, 500000, 1000000] -autoScrollerChanges = [10, 20, 40, 80, 150, 300, 500, 1000, 1500, 3000] +autoScrollerUpgrades = [1000, 5000, 10000, 20000, 40000, 80000, 150000, 300000, 500000, 1000000]; +autoScrollerChanges = [10, 20, 40, 80, 150, 300, 500, 1000, 1500, 3000]; function upgradeAutoscroller() { if (currentNumber >= autoScrollerUpgrades[autoScrollerLevel]) { currentNumber = parseInt(currentNumber); @@ -69,9 +69,9 @@ function upgradeAutoscroller() { function updateUpgradeCost() { const upgradeCostElement = document.getElementById("upgradeCostText"); - spsamounttext = `🖱️ Scrolls per Scroll: ${scrollsPerScroll}` + spsamounttext = `🖱️ Scrolls per Scroll: ${scrollsPerScroll}` if (scrollsPerScrollLevel >= upgrades.length) { - spsamounttext = `🖱️ Scrolls per Scroll: ${scrollsPerScroll} (MAX)` + spsamounttext = `🖱️ Scrolls per Scroll: ${scrollsPerScroll} (MAX)` } asamounttext = `🤖 AutoScroller: ${autoScrollerSPS}` if (autoScrollerLevel >= autoScrollerUpgrades.length) {