Skip to content

Commit

Permalink
πŸ› Fixed upgrades - final commit (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranperk authored Nov 24, 2023
1 parent be928bb commit 161da5a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand All @@ -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);
Expand All @@ -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) {
Expand Down

0 comments on commit 161da5a

Please sign in to comment.