Skip to content

Commit

Permalink
fix: modifier again
Browse files Browse the repository at this point in the history
  • Loading branch information
Mees committed Nov 3, 2024
1 parent 48f3d11 commit e16721d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types/items/sets/WorkerSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export const workerSet = [
return true
},
onRemove: ({gameStore, adventureStore}, item) => {
const modifier = {
defense: 0.0005,
health: 0.0005,
}
const bonusMultiplier = 1 + (item.multiplier * item.level)
gameStore.productionRates.collectionRateModifier /= bonusMultiplier
adventureStore.armyDefenseModifier /= 1 + (modifier.defense * item.level)
Expand Down

0 comments on commit e16721d

Please sign in to comment.