Skip to content

Commit

Permalink
Fix Exalt 5 Bonus Reward (#611)
Browse files Browse the repository at this point in the history
* Update Synergism.ts

fix global currentSingChallenge value after reloads

* Update Synergism.ts

syntax issues

* Update Synergism.ts

typos, syntax

* Update Synergism.ts

syntax

* Update Synergism.ts

lint

* Update Synergism.ts

use tag instead of key directly

* Update src/Synergism.ts

---------

Co-authored-by: Khafra <[email protected]>
  • Loading branch information
kimihiro64 and KhafraDev authored Jul 17, 2024
1 parent 6c49191 commit fa71c43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Synergism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,18 @@ const loadSynergy = async () => {
}
}

// TODO(@KhafraDev): remove G.currentSingChallenge
// fix current sing challenge blank
if (player.insideSingularityChallenge) {
const challenges = Object.keys(player.singularityChallenges);
for (let i = 0; i < challenges.length; i++) {
if (player.singularityChallenges[challenges[i]].enabled) {
G.currentSingChallenge = singularityChallengeData[challenges[i]].HTMLTag;
break;
}
}
}

if (!('rngCode' in data)) {
player.rngCode = 0
}
Expand Down

0 comments on commit fa71c43

Please sign in to comment.