mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-04 13:49:32 +02:00
add: some missing types in berries-abound encounter
for ease of reading
This commit is contained in:
parent
db06c56f44
commit
bb8cad9eff
@ -162,10 +162,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
|
|||||||
.withOptionPhase(async (scene: BattleScene) => {
|
.withOptionPhase(async (scene: BattleScene) => {
|
||||||
// Pick race for berries
|
// Pick race for berries
|
||||||
const encounter = scene.currentBattle.mysteryEncounter!;
|
const encounter = scene.currentBattle.mysteryEncounter!;
|
||||||
const fastestPokemon = encounter.misc.fastestPokemon;
|
const fastestPokemon: PlayerPokemon = encounter.misc.fastestPokemon;
|
||||||
const enemySpeed = encounter.misc.enemySpeed;
|
const enemySpeed: number = encounter.misc.enemySpeed;
|
||||||
const speedDiff = fastestPokemon.getStat(Stat.SPD) / (enemySpeed * 1.1);
|
const speedDiff = fastestPokemon.getStat(Stat.SPD) / (enemySpeed * 1.1);
|
||||||
const numBerries = encounter.misc.numBerries;
|
const numBerries: number = encounter.misc.numBerries;
|
||||||
|
|
||||||
const shopOptions: ModifierTypeOption[] = [];
|
const shopOptions: ModifierTypeOption[] = [];
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user