Skip to content

Commit

Permalink
coerce old scripted long ingameID to new in fervidex imports, keep ol…
Browse files Browse the repository at this point in the history
…d kamai chart ID
  • Loading branch information
GRIM657 committed Nov 21, 2023
1 parent 75fee3d commit bf7e766
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 44 deletions.
64 changes: 22 additions & 42 deletions database-seeds/collections/charts-iidx.json
Original file line number Diff line number Diff line change
Expand Up @@ -891188,46 +891188,6 @@
"30-omni"
]
},
{
"chartID": "5accdc65e12d57da5e954e748cd195aa86fd0ff9",
"data": {
"2dxtraSet": null,
"bpiCoefficient": null,
"exhcTier": {
"individualDifference": false,
"text": "EXH.7",
"value": 13.1
},
"hashSHA256": null,
"hcTier": {
"individualDifference": false,
"text": "12A",
"value": 12.9
},
"inGameID": 21201,
"kaidenAverage": null,
"ncTier": {
"individualDifference": false,
"text": "12A",
"value": 12.8
},
"notecount": 4459,
"worldRecord": null
},
"difficulty": "ANOTHER",
"isPrimary": false,
"level": "12",
"levelNum": 12,
"playtype": "SP",
"songID": 1514,
"versions": [
"27-omni",
"27-2dxtra",
"28-omni",
"28-2dxtra",
"29-omni"
]
},
{
"chartID": "b61490eb1db3dd7e2421915e25b504dfce4e8da9",
"data": {
Expand Down Expand Up @@ -1226507,13 +1226467,28 @@
]
},
{
"chartID": "44c099d922bd1b296def73c7d639d943f19a826b",
"chartID": "5accdc65e12d57da5e954e748cd195aa86fd0ff9",
"data": {
"2dxtraSet": null,
"bpiCoefficient": null,
"exhcTier": {
"individualDifference": false,
"text": "EXH.7",
"value": 13.1
},
"hashSHA256": null,
"hcTier": {
"individualDifference": false,
"text": "12A",
"value": 12.9
},
"inGameID": 12250,
"kaidenAverage": null,
"ncTier": {
"individualDifference": false,
"text": "12A",
"value": 12.8
},
"notecount": 4459,
"worldRecord": null
},
Expand All @@ -1226524,7 +1226499,12 @@
"playtype": "SP",
"songID": 1514,
"versions": [
"30-omni"
"30-omni",
"27-omni",
"27-2dxtra",
"28-omni",
"28-2dxtra",
"29-omni"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export const ConverterIRFervidexStatic: ConverterFunction<
FervidexStaticScore,
FervidexStaticContext
> = async (data, context, importType, logger) => {
const { difficulty, playtype } = SplitFervidexChartRef(data.chart);
let { difficulty, playtype } = SplitFervidexChartRef(data.chart);

if(data.entry_id === 21201 && difficulty === "ANOTHER") {
data.entry_id = 12250;
difficulty = "LEGGENDARIA";
}

const chart = await FindChartOnInGameIDVersion(
"iidx",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ export const ConverterIRFervidex: ConverterFunction<FervidexScore, FervidexConte
importType,
logger
) => {
const { difficulty, playtype } = SplitFervidexChartRef(data.chart);
let { difficulty, playtype } = SplitFervidexChartRef(data.chart);

if(data.entry_id === 21201 && difficulty === "ANOTHER") {
data.entry_id = 12250;
difficulty = "LEGGENDARIA";
}

let chart;

Expand Down

0 comments on commit bf7e766

Please sign in to comment.