Skip to content

Commit

Permalink
Variable capitalization consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jan 28, 2025
1 parent 11a2579 commit b49c4bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions util/pokemon/getPokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ function calcHP(pokemon, generation) {
// min100 = Math.floor((100 / 100 + 1) * base + 100 + (50 / 2.5));
// max100 = Math.floor((100 / 100 + 1) * base + 100 + Math.round((Math.sqrt(base) * 25 + 50) / 2.5));

let StatText = `(${min50}-${max50}) (${min100}-${max100})`;
if (pokemon.name.endsWith("-Gmax") || pokemon.name.endsWith("-Eternamax")) StatText = `(${Math.floor(min50 * 1.5)}-${max50 * 2}) (${Math.floor(min100 * 1.5)}-${max100 * 2})`;
if (pokemon.name == "Shedinja") StatText = `(1-1) (1-1)`;
return StatText;
let statText = `(${min50}-${max50}) (${min100}-${max100})`;
if (pokemon.name.endsWith("-Gmax") || pokemon.name.endsWith("-Eternamax")) statText = `(${Math.floor(min50 * 1.5)}-${max50 * 2}) (${Math.floor(min100 * 1.5)}-${max100 * 2})`;
if (pokemon.name == "Shedinja") statText = `(1-1) (1-1)`;
return statText;
};

function calcStat(base, generation) {
Expand Down Expand Up @@ -464,8 +464,8 @@ function calcStat(base, generation) {
// min100 = Math.floor((((100 / 50 + 1) * base) / 1.5) + (50 / 2.5));
// max100 = Math.floor(((((100 / 50 + 1) * base) / 1.5) * 1.1) + Math.round((Math.sqrt(base) * 25 + 50) / 2.5));

let StatText = `(${min50}-${max50}) (${min100}-${max100})`;
return StatText;
let statText = `(${min50}-${max50}) (${min100}-${max100})`;
return statText;
};

function getEvoMethod(pokemon) {
Expand Down

0 comments on commit b49c4bd

Please sign in to comment.