Skip to content

Commit

Permalink
Update build-indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty-D authored Sep 14, 2023
1 parent dc02526 commit ed7359f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-tools/build-indexes
Original file line number Diff line number Diff line change
Expand Up @@ -983,12 +983,12 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
...gens.filter(gen => gen > 4)
);
legalGens += '0123456789'.slice(minUpperGen);
learnsets[id][moveid] = legalGens;
BattleTeambuilderTable['gen9predlc'].learnsets[id][moveid] = legalGens;
} else {
learnsets[id][moveid] = '0123456789'.slice(minGen);
BattleTeambuilderTable['gen9predlc'].learnsets[id][moveid] = '0123456789'.slice(minGen);
}

if (gens.indexOf(6) >= 0) learnsets[id][moveid] += 'p';
if (gens.indexOf(6) >= 0) BattleTeambuilderTable['gen9predlc'].learnsets[id][moveid] += 'p';
if (gens.indexOf(7) >= 0 && learnset[moveid].some(x => x[0] === '7' && x !== '7V')) {
BattleTeambuilderTable['gen9predlc'].learnsets[id][moveid] += 'q';
}
Expand Down

0 comments on commit ed7359f

Please sign in to comment.