Skip to content

Commit

Permalink
Corrected issue with Complete Shiny Hunt not grabbing old evolutions …
Browse files Browse the repository at this point in the history
…not present
  • Loading branch information
TheMrDew committed Nov 2, 2024
1 parent 965d412 commit 3c6083f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pokedex/Pokedex/DataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,12 @@ public List<Pokemon> GetNonBattlePokemonWithFormNames(int gameId = 0)

if (gameId != 0)
{
// Gets future evolutions that are possible.
// Gets evolutions that are possible in other games.
Game game = this.GetObjectByPropertyValue<Game>("Id", gameId);
List<Evolution> evolutions = this.GetObjects<Evolution>("EvolutionPokemon.PokedexNumber, EvolutionPokemonId", "EvolutionPokemon, EvolutionPokemon.Game").Where(x => x.GenerationId > game.GenerationId).ToList();
List<Evolution> evolutions = this.GetObjects<Evolution>("EvolutionPokemon.PokedexNumber, EvolutionPokemonId", "EvolutionPokemon, EvolutionPokemon.Game, PreevolutionPokemon, PreevolutionPokemon.Game");
List<Pokemon> futureEvolutions = evolutions.Where(x => pokemonList.Any(y => y.Id == x.PreevolutionPokemonId)).ToList().ConvertAll(x => x.EvolutionPokemon);
List<PokemonFormDetail> formDetails = this.GetObjects<PokemonFormDetail>(includes: "AltFormPokemon, AltFormPokemon.Game, Form");
futureEvolutions = futureEvolutions.Where(x => x.Game.GenerationId > game.GenerationId).Distinct().ToList();
futureEvolutions = futureEvolutions.Distinct().ToList();
futureEvolutions.Where(x => formDetails.ConvertAll(x => x.AltFormPokemon).Any(y => y.Id == x.Id)).ToList().ForEach(x => x.Name = this.GetAltFormWithFormName(x.Id).Name);
pokemonList.AddRange(futureEvolutions);
}
Expand Down
1 change: 1 addition & 0 deletions Pokedex/Pokedex/wwwroot/css/pokemonPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@

.pokemonImage img {
backface-visibility: hidden;
transform:rotateY(0deg);
}

.cursorHelp:hover {
Expand Down

0 comments on commit 3c6083f

Please sign in to comment.