diff --git a/src/stores/gameStore.ts b/src/stores/gameStore.ts index d347ff6..05a1742 100644 --- a/src/stores/gameStore.ts +++ b/src/stores/gameStore.ts @@ -297,7 +297,6 @@ export const useGameStore = defineStore('gameStore', { if (adventureStore.battleStatus !== 'idle') { adventureStore.isSimulatingOffline = true adventureStore.processCombat(deltaTimeTraining) - adventureStore.isSimulatingOffline = false } // Reduce remaining time and update progress @@ -321,7 +320,10 @@ export const useGameStore = defineStore('gameStore', { reject(error) } }).finally(() => { + const adventureStore = useAdventureStore() + this.simulatingOfflineProgress = false + adventureStore.isSimulatingOffline = false }) }, diff --git a/src/stores/trainingStore.ts b/src/stores/trainingStore.ts index 817b2bc..f3e26f1 100644 --- a/src/stores/trainingStore.ts +++ b/src/stores/trainingStore.ts @@ -62,19 +62,26 @@ export const useTrainingStore = defineStore({ // Mining miningMilestones: [ { - levelRequired: 75, + levelRequired: 50, effect: { maxActiveResources: 2, }, description: 'Unlocks the ability to mine 2 resources at once', }, { - levelRequired: 150, + levelRequired: 75, effect: { maxActiveResources: 3, }, description: 'Unlocks the ability to mine 3 resources at once', }, + { + levelRequired: 150, + effect: { + maxActiveResources: 4, + }, + description: 'Unlocks the ability to mine 4 resources at once', + }, ], activeResources: [] as ResourceType[], maxActiveResources: 1, @@ -217,6 +224,67 @@ export const useTrainingStore = defineStore({ antGeneration: 5, }, }, + { + name: CraftingRecipeType.MasterSeedStorage, + description: 'Increase the storage capacity for seeds by 2%', + cost: { + [ResourceType.RottenWood]: 15, + [ResourceType.Fungus]: 15, + }, + storageIncrease: { + seed: 0.02, + }, + xpPerAction: 150, + levelRequired: 75, + initialTimePerAction: 30, + timePerAction: 30, + }, + { + name: CraftingRecipeType.MasterLarvaeStorage, + description: 'Increase the storage capacity for ant larvae by 2%', + cost: { + [ResourceType.Fungus]: 15, + [ResourceType.Resin]: 10, + }, + storageIncrease: { + larvae: 0.02, + }, + xpPerAction: 150, + levelRequired: 75, + initialTimePerAction: 30, + timePerAction: 30, + }, + { + name: CraftingRecipeType.MasterAntStorage, + description: 'Increase the storage capacity for ants by 2%', + cost: { + [ResourceType.Pebble]: 20, + [ResourceType.Sap]: 15, + }, + storageIncrease: { + ant: 0.02, + }, + xpPerAction: 150, + levelRequired: 75, + initialTimePerAction: 30, + timePerAction: 30, + }, + { + name: CraftingRecipeType.MasterAntHill, + description: 'Generates 20 ants passively per Ant Hill', + cost: { + [ResourceType.Root]: 25, + [ResourceType.CarapaceFragment]: 25, + ants: 500, + }, + xpPerAction: 200, + levelRequired: 100, + initialTimePerAction: 45, + timePerAction: 45, + effect: { + antGeneration: 20, + }, + }, ], craftedItems: { [CraftingRecipeType.SeedStorage]: 0, diff --git a/src/types/trainingTypes.ts b/src/types/trainingTypes.ts index b739d21..a6b7ef8 100644 --- a/src/types/trainingTypes.ts +++ b/src/types/trainingTypes.ts @@ -53,15 +53,19 @@ export enum ResourceType { export enum CraftingRecipeType { SeedStorage = 'Seed Storage', AdvancedSeedStorage = 'Advanced Seed Storage', + MasterSeedStorage = 'Master Seed Storage', LarvaeStorage = 'Larvae Storage', AdvancedLarvaeStorage = 'Advanced Larvae Storage', + MasterLarvaeStorage = 'Master Larvae Storage', AntStorage = 'Ant Storage', AdvancedAntStorage = 'Advanced Ant Storage', + MasterAntStorage = 'Master Ant Storage', AntHill = 'Ant Hill', AdvancedAntHill = 'Advanced Ant Hill', + MasterAntHill = 'Master Ant Hill', } export interface TrainingState {