Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterReinert committed Nov 3, 2024
1 parent 0779da0 commit ba3a5eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions build-tools/build-indexes-custom-v2
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
if (!tierTable[tier]) tierTable[tier] = [];
tierTable[tier].push(id);
}
if (is35Pokes) {
console.log(tierTable);
}

nonstandardMoves.push(...Object.keys(Dex.data.Moves).filter(id => {
const move = Dex.mod(isSSDLC1 ? 'gen8dlc1' : isPreDLC ? 'gen9predlc' : 'gen9dlc1').moves.get(id);
Expand Down
5 changes: 1 addition & 4 deletions play.pokemonshowdown.com/src/battle-dex-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,6 @@ class BattlePokemonSearch extends BattleTypedSearch<'pokemon'> {
table = table['35_pokes'];
}

console.log('look')
console.log(this.formatType)
console.log(table)

if (!table.tierSet) {
table.tierSet = table.tiers.map((r: any) => {
if (typeof r === 'string') return ['pokemon', r];
Expand All @@ -1070,6 +1066,7 @@ class BattlePokemonSearch extends BattleTypedSearch<'pokemon'> {
table.tiers = null;
}
let tierSet: SearchRow[] = table.tierSet;
console.log(table);
let slices: {[k: string]: number} = table.formatSlices;
if (format === 'ubers' || format === 'uber' || format === 'ubersuu' || format === 'worldscollideubers' || format === 'sanctifiedubers' || format === 'rebalancedubers' || format === 'gptubers') tierSet = tierSet.slice(slices.Uber);
else if (isVGCOrBS || (isHackmons && dex.gen === 9 && !this.formatType)) {
Expand Down

0 comments on commit ba3a5eb

Please sign in to comment.