Remove level and stat caps
This commit is contained in:
1 parent
c275620755
commit
dca8a5c529
6 files changed
+30
-10
No files matched your search
@@ -378,7 +378,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
||||
const relLevelExp = getLevelRelExp(this.lastLevel + 1, pokemon.species.growthRate);
|
||||
const levelExp = levelUp ? relLevelExp : pokemon.levelExp;
|
||||
let ratio = relLevelExp ? levelExp / relLevelExp : 0;
|
||||
if (this.lastLevel >= (this.scene as BattleScene).getMaxExpLevel(true)) {
|
||||
if (this.lastLevel >= (this.scene as BattleScene).getMaxExpLevel()) {
|
||||
if (levelUp)
|
||||
ratio = 1;
|
||||
else
|
||||
|
||||
@@ -570,8 +570,8 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
statsContainer.add(statLabel);
|
||||
|
||||
const statValueText = stat !== Stat.HP
|
||||
? this.pokemon.stats[s].toString()
|
||||
: `${this.pokemon.hp}/${this.pokemon.getMaxHp()}`;
|
||||
? Utils.formatStat(this.pokemon.stats[s])
|
||||
: `${Utils.formatStat(this.pokemon.hp, true)}/${Utils.formatStat(this.pokemon.getMaxHp(), true)}`;
|
||||
|
||||
const statValue = addTextObject(this.scene, 120 + 88 * colIndex, 56 + 16 * rowIndex, statValueText, TextStyle.WINDOW);
|
||||
statValue.setOrigin(1, 0);
|
||||
|
||||
Reference in new issue
Block a user