Skip to content

Commit

Permalink
feat: update iidx import methods (#1157)
Browse files Browse the repository at this point in the history
* feat: update iidx import methods

* add some ea3IDs
  • Loading branch information
GRIM657 committed Aug 23, 2024
1 parent dfb5fe0 commit 2651b40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/lib/constants/ea3id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ export const EXT_CASTHOUR = "2022082400";

export const EXT_RESIDENT = ["2022103100", "2022120800", "2023022000", "2023040400", "2023090500"];

export const EXT_EPOLIS = ["2023101800", "2023103000", "2023121800", "2024021300"];

export const MODEL_SDVX3_KONASTE = "QCV";
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ function ConvertVersion(version: integer): Versions["iidx:DP" | "iidx:SP"] {
return "29";
case 30:
return "30";
case 31:
return "31";
}

throw new InvalidScoreFailure(`Unsupported version ${version}.`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
EXT_CASTHOUR,
EXT_HEROIC_VERSE,
EXT_RESIDENT,
EXT_EPOLIS,
MODEL_IIDX,
MODEL_IIDX_LIGHTNING,
MODEL_INFINITAS_2,
Expand Down Expand Up @@ -119,6 +120,10 @@ export function SoftwareIDToVersion(
} else if (data.rev === REV_2DXTRA) {
return "30-2dxtra";
}
} else if (EXT_EPOLIS.includes(data.ext)) {
if (data.rev === REV_NORMAL) {
return "31";
}
}
}

Expand Down

0 comments on commit 2651b40

Please sign in to comment.