Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Sep 10, 2023
1 parent a59e465 commit 0efcee9
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/ImportExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,24 @@ export const exportData = async (text: string, fileName: string) => {
}

export const exportSynergism = async (shouldSetLastSaveSoWeStopFuckingBotheringPeople = true) => {
player.offlinetick = Date.now()

if (shouldSetLastSaveSoWeStopFuckingBotheringPeople) {
player.lastExportedSave = Date.now()
}

player.offlinetick = Date.now()
const quarkData = quarkHandler()

let bonusGQMultiplier = 1
bonusGQMultiplier *= 1 + player.worlds.BONUS / 100
bonusGQMultiplier *= (player.highestSingularityCount >= 100 ? 1 + player.highestSingularityCount / 50 : 1)
if (+player.singularityUpgrades.goldenQuarks3.getEffect().bonus > 0) {
player.goldenQuarks += Math.floor(player.goldenQuarksTimer / (3600 / +player.singularityUpgrades.goldenQuarks3.getEffect().bonus)) * bonusGQMultiplier
player.goldenQuarksTimer = player.goldenQuarksTimer % (3600 / +player.singularityUpgrades.goldenQuarks3.getEffect().bonus)
}
if (quarkData.gain >= 1) {
player.worlds.add(quarkData.gain)
player.quarkstimer = (player.quarkstimer % (3600 / quarkData.perHour))
const quarkData = quarkHandler()

let bonusGQMultiplier = 1
bonusGQMultiplier *= 1 + player.worlds.BONUS / 100
bonusGQMultiplier *= (player.highestSingularityCount >= 100 ? 1 + player.highestSingularityCount / 50 : 1)
if (+player.singularityUpgrades.goldenQuarks3.getEffect().bonus > 0) {
player.goldenQuarks += Math.floor(player.goldenQuarksTimer / (3600 / +player.singularityUpgrades.goldenQuarks3.getEffect().bonus)) * bonusGQMultiplier
player.goldenQuarksTimer = player.goldenQuarksTimer % (3600 / +player.singularityUpgrades.goldenQuarks3.getEffect().bonus)
}
if (quarkData.gain >= 1) {
player.worlds.add(quarkData.gain)
player.quarkstimer = (player.quarkstimer % (3600 / quarkData.perHour))
}
}

const saved = await saveSynergy()
Expand Down

1 comment on commit 0efcee9

@silpedro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d

Please sign in to comment.