From 894d71631d5fd6ba9d7f2565f8fc30435225ae1e Mon Sep 17 00:00:00 2001 From: ImperialSympathizer Date: Fri, 13 Sep 2024 21:04:47 -0400 Subject: [PATCH] more nits --- src/modifier/modifier-type.ts | 12 ++++++------ src/phases/encounter-phase.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 16b68092d4c..7b64d931156 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -2271,12 +2271,12 @@ export function getDailyRunStarterModifiers(party: PlayerPokemon[]): Modifiers.P /** * Generates a ModifierType from the specified pool - * @param party - party of the trainer using the item - * @param poolType - PLAYER/WILD/TRAINER - * @param tier - If specified, will override the initial tier of an item (can still upgrade with luck) - * @param upgradeCount - If defined, means that this is a new ModifierType being generated to override another via luck upgrade. Used for recursive logic - * @param retryCount - Max allowed tries before the next tier down is checked for a valid ModifierType - * @param allowLuckUpgrades - Default true. If false, will not allow ModifierType to randomly upgrade to next tier + * @param party party of the trainer using the item + * @param poolType PLAYER/WILD/TRAINER + * @param tier If specified, will override the initial tier of an item (can still upgrade with luck) + * @param upgradeCount If defined, means that this is a new ModifierType being generated to override another via luck upgrade. Used for recursive logic + * @param retryCount Max allowed tries before the next tier down is checked for a valid ModifierType + * @param allowLuckUpgrades Default true. If false, will not allow ModifierType to randomly upgrade to next tier */ function getNewModifierTypeOption(party: Pokemon[], poolType: ModifierPoolType, tier?: ModifierTier, upgradeCount?: integer, retryCount: integer = 0, allowLuckUpgrades: boolean = true): ModifierTypeOption | null { const player = !poolType; diff --git a/src/phases/encounter-phase.ts b/src/phases/encounter-phase.ts index 4d3388949f1..1d9567ee9b3 100644 --- a/src/phases/encounter-phase.ts +++ b/src/phases/encounter-phase.ts @@ -98,7 +98,7 @@ export class EncounterPhase extends BattlePhase { } else { let enemySpecies = this.scene.randomSpecies(battle.waveIndex, level, true); // If player has golden bug net, rolls 10% chance to replace with species from the golden bug net bug pool - if (!!this.scene.findModifier(m => m instanceof BoostBugSpawnModifier) && randSeedInt(10) === 0) { + if (this.scene.findModifier(m => m instanceof BoostBugSpawnModifier) && randSeedInt(10) === 0) { enemySpecies = getGoldenBugNetSpecies(); } battle.enemyParty[e] = this.scene.addEnemyPokemon(enemySpecies, level, TrainerSlot.NONE, !!this.scene.getEncounterBossSegments(battle.waveIndex, level, enemySpecies));