Change gym leader and trainer frequency

pull/2/head
Flashfyre 2023-10-22 23:31:41 -04:00
parent ae795e0e6e
commit e09f881cd4
2 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ export class Arena {
}
randomTrainerType(waveIndex: integer): TrainerType {
const isBoss = waveIndex > 10 && waveIndex % 20 === 10 && !!this.trainerPool[BiomePoolTier.BOSS].length
const isBoss = waveIndex > 20 && !(waveIndex % 30) && !!this.trainerPool[BiomePoolTier.BOSS].length
&& (this.biomeType !== Biome.END || this.scene.gameMode !== GameMode.ENDLESS || waveIndex % 250 === 0);
const tierValue = Utils.randSeedInt(!isBoss ? 512 : 64);
let tier = !isBoss

View File

@ -599,9 +599,9 @@ export default class BattleScene extends Phaser.Scene {
this.field.add(newTrainer);
} else {
if (battleType === undefined) {
if (newWaveIndex > 10 && newWaveIndex % 20 === 10)
if (newWaveIndex > 20 && !(newWaveIndex % 30))
newBattleType = BattleType.TRAINER;
else if (newWaveIndex % 10 !== 1) {
else if (newWaveIndex % 10 !== 1 && newWaveIndex % 10) {
const trainerChance = this.arena.getTrainerChance();
newBattleType = trainerChance && !Utils.randSeedInt(trainerChance) ? BattleType.TRAINER : BattleType.WILD;
} else