Skip to content

Commit 550c49c

Browse files
Change passive of Solrock
1 parent 029f3af commit 550c49c

6 files changed

Lines changed: 19 additions & 1 deletion

File tree

app/models/colyseus-models/pokemon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5817,7 +5817,7 @@ export class Solrock extends Pokemon {
58175817
maxPP = 80
58185818
range = 2
58195819
skill = Ability.COSMIC_POWER_SUN
5820-
passive = Passive.DROUGHT
5820+
passive = Passive.DROUGHT_OR_ZENITH
58215821
}
58225822

58235823
export class Regirock extends Pokemon {

app/public/dist/client/changelog/patch-6.9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
- Change Astral Barrage: now rush into backline while shooting. PP 80 → 100
7373
- Adjust Bounce Damage (Spoink, Mantyke): 10/20/30 → 15/20/25
7474
- Scale Shot (Roaring Moon) can now be cancelled if Roaring Moon is asleep, frozen or resurrecting during the cast. Roaring Moon PP 140 → 130
75+
- Change passive of Solrock: now changes the weather to DROUGHT or ZENITH based on your dominant synergy between FIRE and LIGHT
7576

7677
# Changes to Items
7778

app/public/dist/client/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,6 +3151,7 @@
31513151
"TORNADUS": "Change weather to WINDY or SNOW based on your dominant synergy between FLYING and ICE",
31523152
"ENAMORUS": "Change weather to MISTY or WINDY based on your dominant synergy between FAIRY and FLYING",
31533153
"DROUGHT_OR_SANDSTORM": "Change weather to DROUGHT or SANDSTORM based on your dominant synergy between FIRE and GROUND",
3154+
"DROUGHT_OR_ZENITH": "Change weather to DROUGHT or ZENITH based on your dominant synergy between FIRE and LIGHT",
31543155
"RAIN_OR_STORM": "Change weather to RAIN or STORM based on your dominant synergy between WATER and ELECTRIC",
31553156
"AIRLOCK": "Change weather to NEUTRAL",
31563157
"SHARED_VISION": "Shared Vision: All Pokémon with Shared Vision will attack the same target, if at range",

app/public/dist/client/locales/fr/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3103,6 +3103,7 @@
31033103
"TORNADUS": "Change la météo en WINDY ou SNOW selon votre synergie dominante entre FLYING et ICE.",
31043104
"ENAMORUS": "Change la météo en MISTY ou WINDY selon votre synergie dominante entre FAIRY et FLYING.",
31053105
"DROUGHT_OR_SANDSTORM": "Change la météo en DROUGHT ou SANDSTORM selon votre synergie dominante entre FIRE et GROUND.",
3106+
"DROUGHT_OR_ZENITH": "Change la météo en DROUGHT ou ZENITH selon votre synergie dominante entre FIRE et LIGHT.",
31063107
"RAIN_OR_STORM": "Change la météo en RAIN ou STORM selon votre synergie dominante entre WATER et ELECTRIC.",
31073108
"AIRLOCK": "Neutralise tous les effets météorologiques, retourne à une météo NEUTRAL.",
31083109
"SHARED_VISION": "Vision Partagée : Tous les Pokémon avec le passif Vision Partagée attaqueront la même cible, si elle est à portée.",

app/types/enum/Passive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export enum Passive {
3030
WINDY = "WINDY",
3131
ZENITH = "ZENITH",
3232
DROUGHT_OR_SANDSTORM = "DROUGHT_OR_SANDSTORM",
33+
DROUGHT_OR_ZENITH = "DROUGHT_OR_ZENITH",
3334
RAIN_OR_STORM = "RAIN_OR_STORM",
3435
AIRLOCK = "AIRLOCK",
3536
WURMPLE = "WURMPLE",

app/utils/weather.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import Player from "../models/colyseus-models/player"
44
import { Pokemon } from "../models/colyseus-models/pokemon"
55
import { WeatherByWeatherRocks } from "../types/enum/Item"
66
import { Passive } from "../types/enum/Passive"
7+
import { Synergy } from "../types/enum/Synergy"
78
import {
89
PassivesAssociatedToWeather,
910
Weather,
1011
WeatherAssociatedToSynergy
1112
} from "../types/enum/Weather"
1213
import { hasKey } from "./map"
14+
import { values } from "./schemas"
1315

1416
export function getWeather(
1517
bluePlayer: Player,
@@ -215,6 +217,18 @@ export function getWeather(
215217
(boardWeatherScore.get(dominant) ?? 0) + 100
216218
)
217219
}
220+
221+
if (pkm.passive === Passive.DROUGHT_OR_ZENITH) {
222+
const nbLight = values(board).filter((p) =>
223+
p.types.has(Synergy.LIGHT)
224+
)
225+
const nbFire = values(board).filter((p) => p.types.has(Synergy.FIRE))
226+
const dominant = nbLight >= nbFire ? Weather.ZENITH : Weather.DROUGHT
227+
boardWeatherScore.set(
228+
dominant,
229+
(boardWeatherScore.get(dominant) ?? 0) + 100
230+
)
231+
}
218232
}
219233
})
220234
}

0 commit comments

Comments
 (0)