Change spliced endless mode unfused penalty to base stats

pull/6/head
Flashfyre 2023-11-22 18:43:31 -05:00
parent ab70f78a8f
commit 06943ac5dc
1 changed files with 4 additions and 4 deletions

View File

@ -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);