mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
hp added, moves added
This commit is contained in:
parent
f5a0652875
commit
f8f5b4057b
@ -2005,12 +2005,49 @@ export default class BattleScene extends SceneBase {
|
|||||||
biome: this.currentBattle ? getBiomeName(this.arena.biomeType) : '',
|
biome: this.currentBattle ? getBiomeName(this.arena.biomeType) : '',
|
||||||
weather: this.arena?.weather || {},
|
weather: this.arena?.weather || {},
|
||||||
wave: this.currentBattle?.waveIndex || 0,
|
wave: this.currentBattle?.waveIndex || 0,
|
||||||
party: this.party ? this.party.map(p => {
|
party: this.party ? this.party.map(p => {
|
||||||
return { name: p.name, level: p.level, speciesId: p.species.speciesId, fusionId: p.fusionSpecies?.speciesId || -1, active: p.active, gender: p.gender, fieldPosition: p.fieldPosition, speciesVariant: p.variant, fusionVariant: p.fusionVariant, hp: Math.ceil((p.hp/p.stats[0])*100)};
|
return {
|
||||||
}) : [],
|
name: p.name,
|
||||||
enemyParty: this.getEnemyParty() ? this.getEnemyParty().map(p => {
|
level: p.level,
|
||||||
return { name: p.name, level: p.level, speciesId: p.species.speciesId, fusionId: p.fusionSpecies?.speciesId || -1, active: p.active, gender: p.gender, fieldPosition: p.fieldPosition, speciesVariant: p.variant, fusionVariant: p.fusionVariant, hp: Math.ceil((p.hp/p.stats[0])*100)};
|
speciesId: p.species.speciesId,
|
||||||
}) : [],
|
fusionId: p.fusionSpecies?.speciesId || -1,
|
||||||
|
active: p.active,
|
||||||
|
gender: p.gender,
|
||||||
|
fieldPosition: p.fieldPosition,
|
||||||
|
speciesVariant: p.variant,
|
||||||
|
fusionVariant: p.fusionVariant,
|
||||||
|
ability: p.abilityIndex,
|
||||||
|
hp: {
|
||||||
|
current: p.hp,
|
||||||
|
max: p.getMaxHp(),
|
||||||
|
percent: (p.getHpRatio(false))*100
|
||||||
|
},
|
||||||
|
moveset: p.moveset.map(m => {
|
||||||
|
return {
|
||||||
|
moveId: m.moveId,
|
||||||
|
ppUsed: m.ppUsed,
|
||||||
|
ppUp: m.ppUp,
|
||||||
|
ppBase: m.getMove().pp
|
||||||
|
}
|
||||||
|
})
|
||||||
|
};
|
||||||
|
}) : [],
|
||||||
|
enemyParty: this.getEnemyParty() ? this.getEnemyParty().map(p => {
|
||||||
|
return {
|
||||||
|
name: p.name,
|
||||||
|
level: p.level,
|
||||||
|
speciesId: p.species.speciesId,
|
||||||
|
fusionId: p.fusionSpecies?.speciesId || -1,
|
||||||
|
active: p.active,
|
||||||
|
gender: p.gender,
|
||||||
|
fieldPosition: p.fieldPosition,
|
||||||
|
speciesVariant: p.variant,
|
||||||
|
fusionVariant: p.fusionVariant,
|
||||||
|
hp: {
|
||||||
|
percent: (p.getHpRatio(false))*100
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}) : [],
|
||||||
|
|
||||||
};
|
};
|
||||||
(window as any).gameInfo = gameInfo;
|
(window as any).gameInfo = gameInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user