diff --git a/src/stores/resourcesStore.ts b/src/stores/resourcesStore.ts index e8b7698..11ed279 100644 --- a/src/stores/resourcesStore.ts +++ b/src/stores/resourcesStore.ts @@ -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 diff --git a/src/stores/trainingStore.ts b/src/stores/trainingStore.ts index a3afadf..c1a2d43 100644 --- a/src/stores/trainingStore.ts +++ b/src/stores/trainingStore.ts @@ -1234,7 +1234,7 @@ export const useTrainingStore = defineStore({ } if (effect.royalJellyGeneration) { - resourcesStore.addRoyalJellyGeneration(effect.royalJellyGeneration * amountOfUpgrade) + resourcesStore.setRoyalJellyGeneration(effect.royalJellyGeneration * amountOfUpgrade) } },