Remove trainer level logic that made weak party members too strong

pull/16/head
Flashfyre 2024-02-24 23:25:49 -05:00
parent b48c7ca76d
commit db33785fc2
1 changed files with 2 additions and 8 deletions

View File

@ -91,7 +91,7 @@ export default class Trainer extends Phaser.GameObjects.Container {
switch (strength) {
case TrainerPartyMemberStrength.WEAKEST:
multiplier = 0.85;
multiplier = 0.9;
break;
case TrainerPartyMemberStrength.WEAKER:
multiplier = 0.95;
@ -110,13 +110,7 @@ export default class Trainer extends Phaser.GameObjects.Container {
break;
}
let level = Math.ceil(baseLevel * multiplier);
if (strength < TrainerPartyMemberStrength.STRONG) {
const minLevel = Math.ceil(baseLevel * 1.2) - Math.floor(waveIndex / 25);
if (level < minLevel)
level = minLevel;
}
const level = Math.ceil(baseLevel * multiplier);
ret.push(level);
}