mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-06 16:17:33 +00:00
Try rebalancing final boss by removing items
This commit is contained in:
parent
8c1c7f5f83
commit
b47f7b7ad2
@ -1622,6 +1622,8 @@ export default class BattleScene extends Phaser.Scene {
|
|||||||
|
|
||||||
generateEnemyModifiers(): Promise<void> {
|
generateEnemyModifiers(): Promise<void> {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
|
if (this.currentBattle.battleSpec === BattleSpec.FINAL_BOSS)
|
||||||
|
return resolve();
|
||||||
const waveIndex = this.currentBattle.waveIndex;
|
const waveIndex = this.currentBattle.waveIndex;
|
||||||
const chances = Math.ceil(waveIndex / 10);
|
const chances = Math.ceil(waveIndex / 10);
|
||||||
const isBoss = !(waveIndex % 10) || (this.currentBattle.battleType === BattleType.TRAINER && this.currentBattle.trainer.config.isBoss);
|
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 { Nature } from "../data/nature";
|
||||||
import { GameStats } from "./game-stats";
|
import { GameStats } from "./game-stats";
|
||||||
import { Tutorial } from "../tutorial";
|
import { Tutorial } from "../tutorial";
|
||||||
|
import { BattleSpec } from "../enums/battle-spec";
|
||||||
|
|
||||||
const saveKey = 'x0i2O7WRiANTqPmZ'; // Temporary; secure encryption is not yet necessary
|
const saveKey = 'x0i2O7WRiANTqPmZ'; // Temporary; secure encryption is not yet necessary
|
||||||
|
|
||||||
@ -519,6 +520,8 @@ export class GameData {
|
|||||||
|
|
||||||
scene.updateModifiers(true);
|
scene.updateModifiers(true);
|
||||||
|
|
||||||
|
// TODO: Remove if
|
||||||
|
if (battle.battleSpec !== BattleSpec.FINAL_BOSS) {
|
||||||
for (let enemyModifierData of sessionData.enemyModifiers) {
|
for (let enemyModifierData of sessionData.enemyModifiers) {
|
||||||
const modifier = enemyModifierData.toModifier(scene, modifiersModule[enemyModifierData.className]);
|
const modifier = enemyModifierData.toModifier(scene, modifiersModule[enemyModifierData.className]);
|
||||||
if (modifier)
|
if (modifier)
|
||||||
@ -526,6 +529,7 @@ export class GameData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scene.updateModifiers(false);
|
scene.updateModifiers(false);
|
||||||
|
}
|
||||||
|
|
||||||
Promise.all(loadPokemonAssets).then(() => resolve(true));
|
Promise.all(loadPokemonAssets).then(() => resolve(true));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user