feat: handle miscItemFee in end of match upload
All checks were successful
Build / build (22) (push) Successful in 1m9s
Build / build (22) (pull_request) Successful in 1m16s
Build / build (18) (push) Successful in 41s
Build / build (20) (push) Successful in 1m12s
Build / build (18) (pull_request) Successful in 40s
Build / build (20) (pull_request) Successful in 1m10s
All checks were successful
Build / build (22) (push) Successful in 1m9s
Build / build (22) (pull_request) Successful in 1m16s
Build / build (18) (push) Successful in 41s
Build / build (20) (push) Successful in 1m12s
Build / build (18) (pull_request) Successful in 40s
Build / build (20) (pull_request) Successful in 1m10s
This commit is contained in:
parent
0b18932dd8
commit
90eb68aa8c
8
package-lock.json
generated
8
package-lock.json
generated
@ -18,7 +18,7 @@
|
|||||||
"morgan": "^1.10.0",
|
"morgan": "^1.10.0",
|
||||||
"ncp": "^2.0.0",
|
"ncp": "^2.0.0",
|
||||||
"typescript": ">=5.5 <5.6.0",
|
"typescript": ">=5.5 <5.6.0",
|
||||||
"warframe-public-export-plus": "^0.5.49",
|
"warframe-public-export-plus": "^0.5.50",
|
||||||
"warframe-riven-info": "^0.1.2",
|
"warframe-riven-info": "^0.1.2",
|
||||||
"winston": "^3.17.0",
|
"winston": "^3.17.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0"
|
"winston-daily-rotate-file": "^5.0.0"
|
||||||
@ -3789,9 +3789,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/warframe-public-export-plus": {
|
"node_modules/warframe-public-export-plus": {
|
||||||
"version": "0.5.49",
|
"version": "0.5.50",
|
||||||
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.49.tgz",
|
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.50.tgz",
|
||||||
"integrity": "sha512-11HA8qEMhFfl12W2qIjjk7fhas+/5G2yXbrOEb8FRZby6tWka0CyUnB6tLT+PCqBEIoU+kwhz0g7CLh3Zmy7Pw=="
|
"integrity": "sha512-KlhdY/Q5sRAIn/RhmdviKBoX3gk+Jtuen0cWnFB2zqK7eKYMDtd79bKOtTPtnK9zCNzh6gFug2wEeDVam3Bwlw=="
|
||||||
},
|
},
|
||||||
"node_modules/warframe-riven-info": {
|
"node_modules/warframe-riven-info": {
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"morgan": "^1.10.0",
|
"morgan": "^1.10.0",
|
||||||
"ncp": "^2.0.0",
|
"ncp": "^2.0.0",
|
||||||
"typescript": ">=5.5 <5.6.0",
|
"typescript": ">=5.5 <5.6.0",
|
||||||
"warframe-public-export-plus": "^0.5.49",
|
"warframe-public-export-plus": "^0.5.50",
|
||||||
"warframe-riven-info": "^0.1.2",
|
"warframe-riven-info": "^0.1.2",
|
||||||
"winston": "^3.17.0",
|
"winston": "^3.17.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0"
|
"winston-daily-rotate-file": "^5.0.0"
|
||||||
|
@ -77,6 +77,21 @@ export const addMissionInventoryUpdates = async (
|
|||||||
inventoryUpdates: IMissionInventoryUpdateRequest
|
inventoryUpdates: IMissionInventoryUpdateRequest
|
||||||
): Promise<IInventoryChanges> => {
|
): Promise<IInventoryChanges> => {
|
||||||
const inventoryChanges: IInventoryChanges = {};
|
const inventoryChanges: IInventoryChanges = {};
|
||||||
|
if (
|
||||||
|
inventoryUpdates.EndOfMatchUpload &&
|
||||||
|
inventoryUpdates.Missions &&
|
||||||
|
inventoryUpdates.Missions.Tag in ExportRegions
|
||||||
|
) {
|
||||||
|
const node = ExportRegions[inventoryUpdates.Missions.Tag];
|
||||||
|
if (node.miscItemFee) {
|
||||||
|
addMiscItems(inventory, [
|
||||||
|
{
|
||||||
|
ItemType: node.miscItemFee.ItemType,
|
||||||
|
ItemCount: node.miscItemFee.ItemCount * -1
|
||||||
|
}
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (inventoryUpdates.RewardInfo) {
|
if (inventoryUpdates.RewardInfo) {
|
||||||
if (inventoryUpdates.RewardInfo.periodicMissionTag) {
|
if (inventoryUpdates.RewardInfo.periodicMissionTag) {
|
||||||
const tag = inventoryUpdates.RewardInfo.periodicMissionTag;
|
const tag = inventoryUpdates.RewardInfo.periodicMissionTag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user