fix: LevelKeys items added to QuestKeys
All checks were successful
Build / build (18) (pull_request) Successful in 38s
Build / build (20) (pull_request) Successful in 1m6s
Build / build (22) (pull_request) Successful in 36s

This commit is contained in:
AMelonInsideLemon 2025-02-22 10:04:51 +01:00
parent df70050cfd
commit 23f8818257
3 changed files with 30 additions and 16 deletions

8
package-lock.json generated
View File

@ -12,7 +12,7 @@
"copyfiles": "^2.4.1",
"express": "^5",
"mongoose": "^8.9.4",
"warframe-public-export-plus": "^0.5.30",
"warframe-public-export-plus": "^0.5.34",
"warframe-riven-info": "^0.1.2",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0"
@ -4093,9 +4093,9 @@
}
},
"node_modules/warframe-public-export-plus": {
"version": "0.5.30",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.30.tgz",
"integrity": "sha512-vzs+naEqp3iFZTbgIky4jiNbjNIovuR4oSimrFiuyIbrnfTlfXFzDfzT0hG2rgS8yEXBAbOcv2Zfm3fmWuZ0Kg=="
"version": "0.5.34",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.34.tgz",
"integrity": "sha512-sv6un4KohFEEJUbnmiWqf+KL4Th8r8HLI/owsutwni4R9g154JWEBScX7+6K7jH8eXWYxeKuCtPU9a5X2JFGHQ=="
},
"node_modules/warframe-riven-info": {
"version": "0.1.2",

View File

@ -17,7 +17,7 @@
"copyfiles": "^2.4.1",
"express": "^5",
"mongoose": "^8.9.4",
"warframe-public-export-plus": "^0.5.30",
"warframe-public-export-plus": "^0.5.34",
"warframe-riven-info": "^0.1.2",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0"

View File

@ -367,17 +367,31 @@ export const addItem = async (
};
}
if (typeName in ExportKeys) {
// Note: "/Lotus/Types/Keys/" contains some EmailItems
inventory.QuestKeys.push({ ItemType: typeName });
if (ExportKeys[typeName].chainStages) {
inventory.QuestKeys.push({ ItemType: typeName, Progress: [] });
return {
InventoryChanges: {
QuestKeys: [
{
ItemType: typeName
ItemType: typeName,
Progress: []
}
]
}
};
} else {
inventory.LevelKeys.push({ ItemType: typeName, ItemCount: quantity });
return {
InventoryChanges: {
LevelKeys: [
{
ItemType: typeName,
ItemCount: quantity
}
]
}
};
}
}
// Path-based duck typing