Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Challenges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,15 @@ export const challengeDisplay = (i: number, changefocus = true) => {
DOMCacheGetOrSet('startChallenge').style.display = 'block'
DOMCacheGetOrSet('retryChallenge').style.display = 'block'
G.triggerChallenge = i
} else {
// Don't update display if they don't match
if (G.challengefocus !== i) {
return;
}
}

const maxChallenges = getMaxChallenges(i)
if (i <= 5 && changefocus) {
if (i <= 5) {
if (player.challengecompletions[i] >= 100) {
DOMCacheGetOrSet('completionSoftcap').innerHTML = i18next.t('challenges.perCompletionBonus', {
x: 100,
Expand All @@ -163,7 +168,7 @@ export const challengeDisplay = (i: number, changefocus = true) => {

if (i > 5 && i <= 10) {
quarksMultiplier = 10
if (player.challengecompletions[i] >= 25 && changefocus) {
if (player.challengecompletions[i] >= 25) {
DOMCacheGetOrSet('completionSoftcap').innerHTML = i18next.t('challenges.perCompletionBonus', {
x: 25,
y: format(CalcECC('reincarnation', player.challengecompletions[i]), 2, true)
Expand Down
2 changes: 1 addition & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@
"47": "Wow! I want even MORE Obtainium!",
"48": "Wow! I want to start ascension with an Ant.",
"49": "Wow! I want to start ascension with a Challenge 6-8 completion.",
"50": "Wow! I want to be enlightened by the power of a thousand suns.",
"50": "Wow! I want to be enlightened by the power of a thousand moons.",
"51": "Wow! A pile of Chocolate Chip Cookies.",
"52": "Wow! A pile of Sugar Cookies.",
"53": "Wow! A pile of Butter Cookies.",
Expand Down