Skip to content

Commit

Permalink
big burn booster facator to calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
saertna committed Oct 17, 2023
1 parent 5b4b7e1 commit 634e373
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions main.js

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ export default class gamification extends Plugin {
let boosterFactorTitleTitan = 0;
let boosterFactorPrecisionPrism = 0;
let boosterFactorHyperlinkHarmony = 0;
let boosterFactorEphemeralEuphoria = 0;
if (this.settings.badgeBoosterState){
boosterFactor = this.settings.badgeBoosterFactor;
}
Expand Down Expand Up @@ -735,9 +736,12 @@ export default class gamification extends Plugin {
if (this.settings.boosterFactorHyperlinkHarmony){
boosterFactorHyperlinkHarmony = 5;
}
if (this.settings.boosterFactorEphemeralEuphoria){
boosterFactorEphemeralEuphoria = 80;
}


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

return this.updateAvatarPage(this.settings.avatarPageName)
Expand Down Expand Up @@ -1489,7 +1493,8 @@ class MultiSelectModal extends Modal {

}




private updateQuantityDisplay(labelText: string) {
const stock = this.boosters[labelText]
const stockInfo = document.querySelector(`.${labelText.replace(' ','-')}`);
Expand Down

0 comments on commit 634e373

Please sign in to comment.