Skip to content

Commit

Permalink
fix: generation of ants and jelly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mees committed Nov 3, 2024
1 parent 29ba9dc commit 816c0a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/stores/resourcesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ export const useResourcesStore = defineStore('resources', {
},
actions: {
addAnts(amount: number) {
this.productionRates.antsGenerationRate += amount
this.productionRates.antsGenerationRate = amount
},
addRoyalJellyGeneration(amount: number) {
this.productionRates.royalJellyGenerationRate += amount
setRoyalJellyGeneration(amount: number) {
this.productionRates.royalJellyGenerationRate = amount
},
applyStorageModifiers(storageModifiers: any) {
this.storageModifiers = storageModifiers
Expand Down
2 changes: 1 addition & 1 deletion src/stores/trainingStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ export const useTrainingStore = defineStore({
}

if (effect.royalJellyGeneration) {
resourcesStore.addRoyalJellyGeneration(effect.royalJellyGeneration * amountOfUpgrade)
resourcesStore.setRoyalJellyGeneration(effect.royalJellyGeneration * amountOfUpgrade)
}
},

Expand Down

0 comments on commit 816c0a9

Please sign in to comment.