mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Replace Species
with SpeciesId
in comments
This commit is contained in:
parent
1e1afa0c85
commit
1ad0d67732
@ -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]"));
|
// 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) {
|
/*for (let pokemon of allSpecies) {
|
||||||
if (pokemon.speciesId >= Species.XERNEAS)
|
if (pokemon.speciesId >= SpeciesId.XERNEAS)
|
||||||
break;
|
break;
|
||||||
pokemonBiomes[pokemon.speciesId - 1][0] = Species[pokemonBiomes[pokemon.speciesId - 1][0]];
|
pokemonBiomes[pokemon.speciesId - 1][0] = Species[pokemonBiomes[pokemon.speciesId - 1][0]];
|
||||||
pokemonBiomes[pokemon.speciesId - 1][1] = Type[pokemonBiomes[pokemon.speciesId - 1][1]];
|
pokemonBiomes[pokemon.speciesId - 1][1] = Type[pokemonBiomes[pokemon.speciesId - 1][1]];
|
||||||
|
@ -610,7 +610,7 @@ function parseEggMoves(content: string): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (eggMoves.find(m => m !== MoveId.NONE)) {
|
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`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ class DefaultOverrides {
|
|||||||
* @example
|
* @example
|
||||||
* ```
|
* ```
|
||||||
* const STARTER_FORM_OVERRIDES = {
|
* const STARTER_FORM_OVERRIDES = {
|
||||||
* [Species.DARMANITAN]: 1
|
* [SpeciesId.DARMANITAN]: 1
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@ -136,7 +136,7 @@ class DefaultOverrides {
|
|||||||
* SPECIES OVERRIDE
|
* SPECIES OVERRIDE
|
||||||
* will only apply to the first starter in your party or each enemy pokemon
|
* will only apply to the first starter in your party or each enemy pokemon
|
||||||
* default is 0 to not override
|
* default is 0 to not override
|
||||||
* @example SPECIES_OVERRIDE = Species.Bulbasaur;
|
* @example SPECIES_OVERRIDE = SpeciesId.Bulbasaur;
|
||||||
*/
|
*/
|
||||||
readonly STARTER_SPECIES_OVERRIDE: SpeciesId | number = 0;
|
readonly STARTER_SPECIES_OVERRIDE: SpeciesId | number = 0;
|
||||||
/**
|
/**
|
||||||
|
@ -301,7 +301,7 @@ describe("Abilities - Magic Guard", () => {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
it("Magic Guard does not prevent self-damage from confusion", async () => {
|
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);
|
game.move.select(MoveId.CHARM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user