mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Apply suggestions from code review
Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
This commit is contained in:
parent
7ad957c619
commit
2014a11e33
@ -1795,7 +1795,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
return (atkScore + defScore) * hpDiffRatio;
|
||||
}
|
||||
|
||||
getEvolution(): SpeciesFormEvolution | FusionSpeciesFormEvolution | null {
|
||||
getEvolution(): SpeciesFormEvolution | null {
|
||||
if (pokemonEvolutions.hasOwnProperty(this.species.speciesId)) {
|
||||
const evolutions = pokemonEvolutions[this.species.speciesId];
|
||||
for (const e of evolutions) {
|
||||
|
@ -35,7 +35,7 @@ export class EvolutionPhase extends Phase {
|
||||
protected pokemonEvoSprite: Phaser.GameObjects.Sprite;
|
||||
protected pokemonEvoTintSprite: Phaser.GameObjects.Sprite;
|
||||
|
||||
constructor(scene: BattleScene, pokemon: PlayerPokemon, evolution: SpeciesFormEvolution | FusionSpeciesFormEvolution | null, lastLevel: integer) {
|
||||
constructor(scene: BattleScene, pokemon: PlayerPokemon, evolution: SpeciesFormEvolution | null, lastLevel: integer) {
|
||||
super(scene);
|
||||
|
||||
this.pokemon = pokemon;
|
||||
|
Loading…
Reference in New Issue
Block a user