Skip to content

Commit

Permalink
chore: lets also buff attack a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mees committed Nov 3, 2024
1 parent 559cbb8 commit 48f3d11
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/types/items/sets/WorkerSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const workerSet = [
id: 'worker-legs',
name: 'Worker Legs',
type: 'equipment',
description: 'Leg armor for workers, increases resource gathering by 0.08% per level.',
description: 'Leg armor for workers, increases resource gathering by 0.08% per level. Also increases damage by 0.05% per level.',
equipmentType: 'armor',
slotType: 'legs',
set: 'Worker Set',
Expand All @@ -89,14 +89,22 @@ export const workerSet = [
return useEvolveStore().getMaxItemLevel('Worker Set')
},
multiplier: 0.0008,
effect: ({gameStore}, item) => {
effect: ({gameStore, adventureStore}, item) => {
const modifier = {
damage: 0.0005,
}
const bonusMultiplier = 1 + (item.multiplier * item.level)
gameStore.productionRates.collectionRateModifier *= bonusMultiplier
adventureStore.armyAttackModifier *= 1 + (modifier.damage * item.level)
return true
},
onRemove: ({gameStore}, item) => {
onRemove: ({gameStore, adventureStore}, item) => {
const modifier = {
damage: 0.0005,
}
const bonusMultiplier = 1 + (item.multiplier * item.level)
gameStore.productionRates.collectionRateModifier /= bonusMultiplier
adventureStore.armyAttackModifier /= 1 + (modifier.damage * item.level)
},
evolves: true,
},
Expand Down

0 comments on commit 48f3d11

Please sign in to comment.