Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
saertna committed Oct 21, 2023
1 parent 2522455 commit 96e6192
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export default class gamification extends Plugin {
console.log(`${pointsReceived * boosterFactor} Points received`)
}


// Inside your function where you want to introduce a delay
setTimeout(async () => {
// Code that you want to execute after the delay
Expand Down Expand Up @@ -796,8 +796,8 @@ export default class gamification extends Plugin {
boosterFactorEphemeralEuphoria = 80;
}


this.settings.statusPoints = pointsToAdd * (boosterFactor + streakbooster + boosterFactorPerpetualProgress + boosterFactorStrategicSynapses + boosterFactorLinkersLode + boosterFactorRecursiveReflection + boosterFactorSynapticSurge + boosterFactorTitleTitan + boosterFactorPrecisionPrism + boosterFactorHyperlinkHarmony + boosterFactorEphemeralEuphoria ) + this.settings.statusPoints
const pointsReceived = pointsToAdd * (boosterFactor + streakbooster + boosterFactorPerpetualProgress + boosterFactorStrategicSynapses + boosterFactorLinkersLode + boosterFactorRecursiveReflection + boosterFactorSynapticSurge + boosterFactorTitleTitan + boosterFactorPrecisionPrism + boosterFactorHyperlinkHarmony + boosterFactorEphemeralEuphoria )
this.settings.statusPoints = pointsReceived + this.settings.statusPoints
await this.saveData(this.settings)

return this.updateAvatarPage(this.settings.avatarPageName)
Expand Down

0 comments on commit 96e6192

Please sign in to comment.