Skip to content

Commit

Permalink
chore: add more training
Browse files Browse the repository at this point in the history
  • Loading branch information
Mees committed Nov 1, 2024
1 parent 418bba7 commit 78e46a4
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/stores/gameStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -321,7 +320,10 @@ export const useGameStore = defineStore('gameStore', {
reject(error)
}
}).finally(() => {
const adventureStore = useAdventureStore()

this.simulatingOfflineProgress = false
adventureStore.isSimulatingOffline = false
})
},

Expand Down
72 changes: 70 additions & 2 deletions src/stores/trainingStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/types/trainingTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 78e46a4

Please sign in to comment.