Try rebalancing final boss by removing items
parent
8c1c7f5f83
commit
b47f7b7ad2
|
@ -1622,6 +1622,8 @@ export default class BattleScene extends Phaser.Scene {
|
|||
|
||||
generateEnemyModifiers(): Promise<void> {
|
||||
return new Promise(resolve => {
|
||||
if (this.currentBattle.battleSpec === BattleSpec.FINAL_BOSS)
|
||||
return resolve();
|
||||
const waveIndex = this.currentBattle.waveIndex;
|
||||
const chances = Math.ceil(waveIndex / 10);
|
||||
const isBoss = !(waveIndex % 10) || (this.currentBattle.battleType === BattleType.TRAINER && this.currentBattle.trainer.config.isBoss);
|
||||
|
|
|
@ -23,6 +23,7 @@ import { loggedInUser, updateUserInfo } from "../account";
|
|||
import { Nature } from "../data/nature";
|
||||
import { GameStats } from "./game-stats";
|
||||
import { Tutorial } from "../tutorial";
|
||||
import { BattleSpec } from "../enums/battle-spec";
|
||||
|
||||
const saveKey = 'x0i2O7WRiANTqPmZ'; // Temporary; secure encryption is not yet necessary
|
||||
|
||||
|
@ -519,13 +520,16 @@ export class GameData {
|
|||
|
||||
scene.updateModifiers(true);
|
||||
|
||||
for (let enemyModifierData of sessionData.enemyModifiers) {
|
||||
const modifier = enemyModifierData.toModifier(scene, modifiersModule[enemyModifierData.className]);
|
||||
if (modifier)
|
||||
scene.addEnemyModifier(modifier, true);
|
||||
}
|
||||
// TODO: Remove if
|
||||
if (battle.battleSpec !== BattleSpec.FINAL_BOSS) {
|
||||
for (let enemyModifierData of sessionData.enemyModifiers) {
|
||||
const modifier = enemyModifierData.toModifier(scene, modifiersModule[enemyModifierData.className]);
|
||||
if (modifier)
|
||||
scene.addEnemyModifier(modifier, true);
|
||||
}
|
||||
|
||||
scene.updateModifiers(false);
|
||||
scene.updateModifiers(false);
|
||||
}
|
||||
|
||||
Promise.all(loadPokemonAssets).then(() => resolve(true));
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue