mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-26 01:57:21 -05:00
This commit is contained in:
parent
c779bd581d
commit
adb885a218
|
|
@ -125,6 +125,7 @@ function requireNoCache(pathSpec) {
|
|||
}
|
||||
for (const id in Dex.data.Pokedex) {
|
||||
const name = Dex.data.Pokedex[id].name;
|
||||
if (Dex.data.Pokedex[id].isCosmeticForme) continue;
|
||||
generateAlias(id, name, 'pokemon');
|
||||
}
|
||||
for (const id in Dex.data.Moves) {
|
||||
|
|
@ -222,7 +223,10 @@ function requireNoCache(pathSpec) {
|
|||
|
||||
for (const type in Dex.data.TypeChart) {
|
||||
BattleSearchCountIndex[type + ' pokemon'] = Object.keys(Dex.data.Pokedex)
|
||||
.filter(id => (Dex.data.Pokedex[id].types.indexOf(type) >= 0)).length;
|
||||
.filter(id => (
|
||||
!Dex.data.Pokedex[id].isCosmeticForme &&
|
||||
Dex.data.Pokedex[id].types.indexOf(type) >= 0
|
||||
)).length;
|
||||
}
|
||||
|
||||
let buf = '// DO NOT EDIT - automatically built with build-tools/build-indexes\n\n';
|
||||
|
|
@ -412,7 +416,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
|
|||
[
|
||||
'Aegislash', 'Castform', 'Cherrim', 'Cramorant', 'Eiscue', 'Meloetta', 'Mimikyu', 'Minior', 'Morpeko', 'Ramnarok', 'Wishiwashi',
|
||||
].includes(species.baseSpecies) || species.forme.includes('Totem') || species.forme.includes('Zen') ||
|
||||
(species.baseSpecies === 'Ogerpon' && species.forme.includes('Tera'))
|
||||
(species.baseSpecies === 'Ogerpon' && species.forme.includes('Tera')) || species.isCosmeticForme
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -1125,7 +1129,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
|
|||
}
|
||||
}
|
||||
|
||||
// Client relevant data that should be overriden by past gens and mods
|
||||
// Client relevant data that should be overridden by past gens and mods
|
||||
const overrideSpeciesKeys = [
|
||||
'abilities', 'baseStats', 'cosmeticFormes', 'isNonstandard', 'requiredItems', 'types', 'unreleasedHidden',
|
||||
];
|
||||
|
|
@ -1151,6 +1155,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
|
|||
BattleTeambuilderTable[gen].overrideSpeciesData = overrideSpeciesData;
|
||||
for (const id in genData.Pokedex) {
|
||||
const curEntry = genDex.species.get(id);
|
||||
if (curEntry.isCosmeticForme) continue;
|
||||
const nextEntry = nextGenDex.species.get(id);
|
||||
for (const key of overrideSpeciesKeys) {
|
||||
if (JSON.stringify(curEntry[key]) !== JSON.stringify(nextEntry[key])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user