Change gym leader and trainer frequency
parent
ae795e0e6e
commit
e09f881cd4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue