Skip to content

Commit

Permalink
fix challenge 7 hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Jan 2, 2024
1 parent d159c0c commit 9241574
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/CheckVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,12 @@ export const checkVariablesOnLoad = (data: PlayerSave) => {
)
player.worlds.add(
150 * shop.offeringAutoLevel + 25 / 2 * (shop.offeringAutoLevel - 1) * shop.offeringAutoLevel
- 150 * Math.min(1, shop.offeringAutoLevel),
- 150 * Math.min(1, shop.offeringAutoLevel),
false
)
player.worlds.add(
150 * shop.obtainiumAutoLevel + 25 / 2 * (shop.obtainiumAutoLevel - 1) * shop.obtainiumAutoLevel
- 150 * Math.min(1, shop.obtainiumAutoLevel),
- 150 * Math.min(1, shop.obtainiumAutoLevel),
false
)
player.worlds.add(100 * shop.cashGrabLevel + 100 / 2 * (shop.cashGrabLevel - 1) * shop.cashGrabLevel, false)
Expand Down Expand Up @@ -720,17 +720,17 @@ export const checkVariablesOnLoad = (data: PlayerSave) => {
player.loadedV253 = true
player.worlds.add(
10000 * player.shopUpgrades.calculator
+ 10000 / 2 * (player.shopUpgrades.calculator - 1) * (player.shopUpgrades.calculator),
+ 10000 / 2 * (player.shopUpgrades.calculator - 1) * (player.shopUpgrades.calculator),
false
)
player.worlds.add(
10000 * player.shopUpgrades.calculator2
+ 5000 / 2 * (player.shopUpgrades.calculator2 - 1) * (player.shopUpgrades.calculator2),
+ 5000 / 2 * (player.shopUpgrades.calculator2 - 1) * (player.shopUpgrades.calculator2),
false
)
player.worlds.add(
25000 * player.shopUpgrades.calculator3
+ 25000 / 2 * (player.shopUpgrades.calculator3 - 1) * (player.shopUpgrades.calculator3),
+ 25000 / 2 * (player.shopUpgrades.calculator3 - 1) * (player.shopUpgrades.calculator3),
false
)
player.shopUpgrades.calculator = 0
Expand All @@ -744,7 +744,7 @@ export const checkVariablesOnLoad = (data: PlayerSave) => {
player.loadedV255 = true
player.worlds.add(
1000 * player.shopUpgrades.powderEX
+ 1000 / 2 * (player.shopUpgrades.powderEX - 1) * (player.shopUpgrades.powderEX),
+ 1000 / 2 * (player.shopUpgrades.powderEX - 1) * (player.shopUpgrades.powderEX),
false
)
player.shopUpgrades.powderEX = 0
Expand Down
4 changes: 2 additions & 2 deletions src/Reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const resetdetails = (input: resetNames) => {
resetObtainiumText.textContent = ''
}

; (input === 'ascensionChallenge' || input === 'ascension' || input === 'singularity')
;(input === 'ascensionChallenge' || input === 'ascension' || input === 'singularity')
? offeringImage.style.display = offeringText.style.display = 'none'
: offeringImage.style.display = offeringText.style.display = 'block'

Expand Down Expand Up @@ -743,7 +743,7 @@ export const reset = (input: resetNames, fast = false, from = 'unknown') => {
if (index >= 2 && index <= 9) {
return Math.min(
maxLevel * (player.challengecompletions[corrChallengeMinimum(index)] > 0
|| player.singularityUpgrades.platonicTau.getEffect().bonus
|| player.singularityUpgrades.platonicTau.getEffect().bonus
? 1
: 0),
curr
Expand Down
2 changes: 1 addition & 1 deletion src/Synergism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4732,7 +4732,7 @@ export const synergismHotkeys = (event: KeyboardEvent, key: string): void => {
if (G.currentTab === Tabs.Buildings && G.buildingSubTab === 'diamond') {
buyCrystalUpgrades(2)
}
if (G.currentTab === Tabs.Buildings && player.achievements[113] === 1) {
if (G.currentTab === Tabs.Challenges && player.achievements[113] === 1) {
toggleChallenges(7)
challengeDisplay(7)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ class $Tab extends HTMLButtonElement {
return this
}

resetHidden() {
resetHidden () {
this.#hidden = false
}
}
Expand Down

0 comments on commit 9241574

Please sign in to comment.