Skip to content

Commit

Permalink
Import SV VGC/BSS sets
Browse files Browse the repository at this point in the history
  • Loading branch information
thejetou committed Nov 10, 2023
1 parent 91a6089 commit 118ef9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions import/src/set-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const UNSUPPORTED: {[format: string]: string} = {
'gen9almostanyability': '[Gen 9] Almost Any Ability',
// NOTE: This should be working but https://github.com/pkmn/ps/issues/25
'gen9lc': '[Gen 9] LC',
'gen9vgc2023regulatione': '[Gen 9] VGC 2023 Regulation E',
};

function first<T>(v: T[] | T): T {
Expand Down Expand Up @@ -351,6 +352,9 @@ async function importGen(
const statsIgnore: {[specie: string]: Set<ID>} = {};
for (const [specieName, formats] of Object.entries(dexSets)) {
for (let [formatID, sets] of Object.entries(formats) as unknown as [ID, DexSet][]) {
if (formatID === 'vgc2023' || formatID === 'battlestadimsingles') {
formatID = `${formatID}regulatione` as ID;
}
formatID = `gen${gen.num}${formatID}` as ID;
const format = UNSUPPORTED[formatID] ? null : Dex.formats.get(formatID);
if (format && !format.exists) {
Expand Down

0 comments on commit 118ef9d

Please sign in to comment.