From 06943ac5dc73b7e67a947dbae84ee386c332e675 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 22 Nov 2023 18:43:31 -0500 Subject: [PATCH] Change spliced endless mode unfused penalty to base stats --- src/pokemon.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index 89393b83d..e86241772 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -387,10 +387,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } getStat(stat: Stat): integer { - let ret = this.stats[stat]; - if (this.scene.gameMode === GameMode.SPLICED_ENDLESS && !this.fusionSpecies) - ret = Math.ceil(ret / 2); - return ret; + return this.stats[stat]; } getBattleStat(stat: Stat, opponent?: Pokemon): integer { @@ -420,6 +417,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { const fusionBaseStats = this.getFusionSpeciesForm().baseStats; for (let s = 0; s < this.stats.length; s++) baseStats[s] = Math.ceil((baseStats[s] + fusionBaseStats[s]) / 2); + } else if (this.scene.gameMode === GameMode.SPLICED_ENDLESS) { + for (let s = 0; s < this.stats.length; s++) + baseStats[s] = Math.ceil(baseStats[s] / 2); } this.scene.applyModifiers(PokemonBaseStatModifier, this.isPlayer(), this, baseStats); const stats = Utils.getEnumValues(Stat);