Halve stats when unspliced in spliced endless mode

pull/6/head
Flashfyre 2023-11-22 15:36:39 -05:00
parent d6617957be
commit ab70f78a8f
1 changed files with 4 additions and 1 deletions

View File

@ -387,7 +387,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
getStat(stat: Stat): integer {
return this.stats[stat];
let ret = this.stats[stat];
if (this.scene.gameMode === GameMode.SPLICED_ENDLESS && !this.fusionSpecies)
ret = Math.ceil(ret / 2);
return ret;
}
getBattleStat(stat: Stat, opponent?: Pokemon): integer {