Skip to content

Commit

Permalink
Merge pull request #2598 from Exeatop/remove-deprecated-method
Browse files Browse the repository at this point in the history
remove deprecated PokemonFactory.transformPokemon method
  • Loading branch information
sylvainpolletvillard authored Dec 18, 2024
2 parents 19db196 + 614c641 commit d12b668
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/models/pokemon-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ export default class PokemonFactory {
return pokemons
}

// transforms a pokemon into another pokemon,
// transferring its items and position to
// the new pokemon
static transformPokemon(before: Pokemon, afterName: Pkm, player?: IPlayer) {
const transformation = this.createPokemonFromName(afterName, player)
transformation.positionX = before.positionX
transformation.positionY = before.positionY
transformation.items = before.items
return transformation
}

static getPokemonBaseEvolution(name: Pkm) {
switch (name) {
case Pkm.VAPOREON:
Expand Down

0 comments on commit d12b668

Please sign in to comment.