more nits

This commit is contained in:
ImperialSympathizer 2024-09-13 21:04:47 -04:00
parent 550fe76eb1
commit 894d71631d
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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));