Skip to content

Commit

Permalink
comment out mode for now
Browse files Browse the repository at this point in the history
  • Loading branch information
AarCon committed Jun 23, 2024
1 parent 09bc629 commit d244d5c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions plugins/pokedex-data-plugin/dex/evolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function getEvolutionTree(pokemonId = 0, fromRoot = true, mode = "2.0") {
throw new Error(`Bad pokemon ID: ${pokemonId}`);
}

const evolutionData = mode === "2.0" ? EvolutionData : EvolutionData3;
// const evolutionData = mode === "2.0" ? EvolutionData : EvolutionData3
// TODO Add 3.0 data back into this.
const evolutionData = EvolutionData;;

const pokemon = evolutionData[pokemonId];
if (!pokemon) {
Expand All @@ -84,7 +86,9 @@ function getEvolutionTree(pokemonId = 0, fromRoot = true, mode = "2.0") {
}

function checkEvolutionPath(evolutionPath, originalPokemonId, mode = "2.0") {
const evolutionData = mode === "2.0" ? EvolutionData : EvolutionData3
// const evolutionData = mode === "2.0" ? EvolutionData : EvolutionData3;
// TODO Add 3.0 data back into this.
const evolutionData = EvolutionData;
const originalPath = evolutionData[originalPokemonId].path;

function comparePath(treeNode, expectedId) {
Expand All @@ -94,7 +98,9 @@ function checkEvolutionPath(evolutionPath, originalPokemonId, mode = "2.0") {
}

function getEvolutionDetails(pokemonId, mode = "2.0") {
const evolutionData = mode === "2.0" ? EvolutionData : EvolutionData3
// const evolutionData = mode === "2.0" ? EvolutionData : EvolutionData3;
// TODO Add 3.0 data back into this.
const evolutionData = EvolutionData;
const evolutionDetails = evolutionData[pokemonId].ar;

if (!evolutionDetails) {
Expand All @@ -116,7 +122,8 @@ function getEvolutionDetails(pokemonId, mode = "2.0") {
const formNo = evolutionInfo[j + 3];
const level = evolutionInfo[j + 4];

const evolutionPokemonId = getPokemonIdFromMonsNoAndForm(monsNo, formNo, mode);
// TODO Add mode back into this function
const evolutionPokemonId = getPokemonIdFromMonsNoAndForm(monsNo, formNo);
if (evolutionPokemonId === pokemonId) {
methodIds.push(methodId);
methodParameters.push(methodParameter);
Expand Down

0 comments on commit d244d5c

Please sign in to comment.