Skip to content

Commit

Permalink
Merge pull request keldaanCommunity#2505 from Exeatop/fix-synergy-ite…
Browse files Browse the repository at this point in the history
…ms-counting-twice-for-weather

Fix synergy items counting twice for weather
  • Loading branch information
sylvainpolletvillard authored Nov 30, 2024
2 parents 04c6bfa + 84eb9e1 commit 89ea2e6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/utils/weather.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ export function getWeather(
}
}

const types = [
...values(pkm.types),
...values(pkm.items)
.filter((item) => item in SynergyGivenByItem)
.map((item) => SynergyGivenByItem[item])
]

types.forEach((type) => {
pkm.types.forEach((type) => {
if (WeatherAssociatedToSynergy.has(type)) {
const weather = WeatherAssociatedToSynergy.get(type)!
boardWeatherScore.set(
Expand Down

0 comments on commit 89ea2e6

Please sign in to comment.