Change gym leader and trainer frequency
parent
ae795e0e6e
commit
e09f881cd4
|
@ -102,7 +102,7 @@ export class Arena {
|
||||||
}
|
}
|
||||||
|
|
||||||
randomTrainerType(waveIndex: integer): TrainerType {
|
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);
|
&& (this.biomeType !== Biome.END || this.scene.gameMode !== GameMode.ENDLESS || waveIndex % 250 === 0);
|
||||||
const tierValue = Utils.randSeedInt(!isBoss ? 512 : 64);
|
const tierValue = Utils.randSeedInt(!isBoss ? 512 : 64);
|
||||||
let tier = !isBoss
|
let tier = !isBoss
|
||||||
|
|
|
@ -599,9 +599,9 @@ export default class BattleScene extends Phaser.Scene {
|
||||||
this.field.add(newTrainer);
|
this.field.add(newTrainer);
|
||||||
} else {
|
} else {
|
||||||
if (battleType === undefined) {
|
if (battleType === undefined) {
|
||||||
if (newWaveIndex > 10 && newWaveIndex % 20 === 10)
|
if (newWaveIndex > 20 && !(newWaveIndex % 30))
|
||||||
newBattleType = BattleType.TRAINER;
|
newBattleType = BattleType.TRAINER;
|
||||||
else if (newWaveIndex % 10 !== 1) {
|
else if (newWaveIndex % 10 !== 1 && newWaveIndex % 10) {
|
||||||
const trainerChance = this.arena.getTrainerChance();
|
const trainerChance = this.arena.getTrainerChance();
|
||||||
newBattleType = trainerChance && !Utils.randSeedInt(trainerChance) ? BattleType.TRAINER : BattleType.WILD;
|
newBattleType = trainerChance && !Utils.randSeedInt(trainerChance) ? BattleType.TRAINER : BattleType.WILD;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue