add required item

This commit is contained in:
AMelonInsideLemon 2025-10-07 13:12:09 +02:00
parent 317fb8324f
commit cc92609740
3 changed files with 21 additions and 8 deletions

8
package-lock.json generated
View File

@ -17,7 +17,7 @@
"morgan": "^1.10.0",
"ncp": "^2.0.0",
"undici": "^7.10.0",
"warframe-public-export-plus": "^0.5.89",
"warframe-public-export-plus": "^0.5.90",
"warframe-riven-info": "^0.1.2",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0",
@ -5532,9 +5532,9 @@
}
},
"node_modules/warframe-public-export-plus": {
"version": "0.5.89",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.89.tgz",
"integrity": "sha512-a6dM1MirzofSsuv3LlRQHFLSSIGKPVSN93dcXSDmA3njsWqOGjJJdWyXqcyxxYw8rEB8CNowSHst/MUmKvKlRg=="
"version": "0.5.90",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.90.tgz",
"integrity": "sha512-PzYFJ+qOZawPOVx9+hGlOosGdqSJMSRL6c1z3CCXMiY5SEHUs7p9JIMjkqnvg1g7vflVWnyG6E5/2gYkQs0d7w=="
},
"node_modules/warframe-riven-info": {
"version": "0.1.2",

View File

@ -35,7 +35,7 @@
"morgan": "^1.10.0",
"ncp": "^2.0.0",
"undici": "^7.10.0",
"warframe-public-export-plus": "^0.5.89",
"warframe-public-export-plus": "^0.5.90",
"warframe-riven-info": "^0.1.2",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0",

View File

@ -2376,7 +2376,14 @@ const collectSkins = (skins: string[], weaponMap: Map<string, string>, itemsToAd
for (const skinId of skins) {
if (skinId.startsWith("ca70ca70ca70ca70")) {
const typeName = skinLookupTable[parseInt(skinId.slice(16), 16)];
if (!weaponMap.has(typeName)) itemsToAdd.add(typeName);
if (!weaponMap.has(typeName)) {
const { requirement } = ExportCustoms[typeName];
if (typeof requirement == "string") {
itemsToAdd.add(requirement);
} else {
itemsToAdd.add(typeName);
}
}
}
}
};
@ -2385,8 +2392,14 @@ const replaceSkinIds = (skins: string[], weaponMap: Map<string, string>): void =
for (let i = 0; i < skins.length; i++) {
const skinId = skins[i];
if (skinId.startsWith("ca70ca70ca70ca70")) {
const inventoryId = weaponMap.get(skinLookupTable[parseInt(skinId.slice(16), 16)]);
if (inventoryId) skins[i] = inventoryId;
const typeName = skinLookupTable[parseInt(skinId.slice(16), 16)];
const inventoryId = weaponMap.get(typeName);
if (inventoryId) {
skins[i] = inventoryId;
} else if (typeName in ExportCustoms) {
const { requirement } = ExportCustoms[typeName];
skins[i] = typeof requirement == "string" ? typeName : "";
}
}
}
};