Replace Species with SpeciesId in comments

This commit is contained in:
NightKev 2025-06-04 14:08:30 -07:00
parent 1e1afa0c85
commit 1ad0d67732
4 changed files with 6 additions and 6 deletions

View File

@ -7913,12 +7913,12 @@ export function initBiomes() {
// }
// }
// console.log(beautify(pokemonOutput, null, 2, 180).replace(/( | (?:\{ "\d+": \[ )?| "(?:.*?)": \[ |(?:,|\[) (?:"\w+": \[ |(?:\{ )?"\d+": \[ )?)"(\w+)"(?= |,|\n)/g, "$1Species.$2").replace(/"(\d+)": /g, "$1: ").replace(/((?: )|(?:(?!\n) "(?:.*?)": \{) |\[(?: .*? )?\], )"(\w+)"/g, "$1[TimeOfDay.$2]").replace(/( )"(.*?)"/g, "$1[BiomePoolTier.$2]").replace(/( )"(.*?)"/g, "$1[BiomeId.$2]"));
// console.log(beautify(pokemonOutput, null, 2, 180).replace(/( | (?:\{ "\d+": \[ )?| "(?:.*?)": \[ |(?:,|\[) (?:"\w+": \[ |(?:\{ )?"\d+": \[ )?)"(\w+)"(?= |,|\n)/g, "$1SpeciesId.$2").replace(/"(\d+)": /g, "$1: ").replace(/((?: )|(?:(?!\n) "(?:.*?)": \{) |\[(?: .*? )?\], )"(\w+)"/g, "$1[TimeOfDay.$2]").replace(/( )"(.*?)"/g, "$1[BiomePoolTier.$2]").replace(/( )"(.*?)"/g, "$1[BiomeId.$2]"));
// console.log(beautify(trainerOutput, null, 2, 120).replace(/( | (?:\{ "\d+": \[ )?| "(?:.*?)": \[ |, (?:(?:\{ )?"\d+": \[ )?)"(.*?)"/g, "$1TrainerType.$2").replace(/"(\d+)": /g, "$1: ").replace(/( )"(.*?)"/g, "$1[BiomePoolTier.$2]").replace(/( )"(.*?)"/g, "$1[BiomeId.$2]"));
// }
/*for (let pokemon of allSpecies) {
if (pokemon.speciesId >= Species.XERNEAS)
if (pokemon.speciesId >= SpeciesId.XERNEAS)
break;
pokemonBiomes[pokemon.speciesId - 1][0] = Species[pokemonBiomes[pokemon.speciesId - 1][0]];
pokemonBiomes[pokemon.speciesId - 1][1] = Type[pokemonBiomes[pokemon.speciesId - 1][1]];

View File

@ -610,7 +610,7 @@ function parseEggMoves(content: string): void {
}
if (eggMoves.find(m => m !== MoveId.NONE)) {
output += `[Species.${SpeciesId[species]}]: [ ${eggMoves.map(m => `MoveId.${MoveId[m]}`).join(", ")} ],\n`;
output += `[SpeciesId.${SpeciesId[species]}]: [ ${eggMoves.map(m => `MoveId.${MoveId[m]}`).join(", ")} ],\n`;
}
}

View File

@ -124,7 +124,7 @@ class DefaultOverrides {
* @example
* ```
* const STARTER_FORM_OVERRIDES = {
* [Species.DARMANITAN]: 1
* [SpeciesId.DARMANITAN]: 1
* }
* ```
*/
@ -136,7 +136,7 @@ class DefaultOverrides {
* SPECIES OVERRIDE
* will only apply to the first starter in your party or each enemy pokemon
* default is 0 to not override
* @example SPECIES_OVERRIDE = Species.Bulbasaur;
* @example SPECIES_OVERRIDE = SpeciesId.Bulbasaur;
*/
readonly STARTER_SPECIES_OVERRIDE: SpeciesId | number = 0;
/**

View File

@ -301,7 +301,7 @@ describe("Abilities - Magic Guard", () => {
/*
it("Magic Guard does not prevent self-damage from confusion", async () => {
await game.classicMode.startBattle([Species.MAGIKARP]);
await game.classicMode.startBattle([SpeciesId.MAGIKARP]);
game.move.select(MoveId.CHARM);