feat: h-09 apex turret sumdali reward #2633
8
package-lock.json
generated
8
package-lock.json
generated
@ -23,7 +23,7 @@
|
|||||||
"ncp": "^2.0.0",
|
"ncp": "^2.0.0",
|
||||||
"typescript": "^5.5",
|
"typescript": "^5.5",
|
||||||
"undici": "^7.10.0",
|
"undici": "^7.10.0",
|
||||||
"warframe-public-export-plus": "^0.5.80",
|
"warframe-public-export-plus": "^0.5.81",
|
||||||
"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",
|
||||||
@ -5507,9 +5507,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/warframe-public-export-plus": {
|
"node_modules/warframe-public-export-plus": {
|
||||||
"version": "0.5.80",
|
"version": "0.5.81",
|
||||||
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.80.tgz",
|
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.81.tgz",
|
||||||
"integrity": "sha512-K5f1Ws3szVdnO0tBcxlNdhXoGHIw09cjHel7spKPGL7aF/vmEkbBGRmYQFvs8n5cGo+v+3qIDMre54Ghb3t0Iw=="
|
"integrity": "sha512-kh3e21XThVDSwdC3TJsMsXZnlZ4B/21HdeJkKcjuTygpCd842EPEKS3lRZl3mpXFOmdha744vAW1XEyHfiLofg=="
|
||||||
},
|
},
|
||||||
"node_modules/warframe-riven-info": {
|
"node_modules/warframe-riven-info": {
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
"ncp": "^2.0.0",
|
"ncp": "^2.0.0",
|
||||||
"typescript": "^5.5",
|
"typescript": "^5.5",
|
||||||
"undici": "^7.10.0",
|
"undici": "^7.10.0",
|
||||||
"warframe-public-export-plus": "^0.5.80",
|
"warframe-public-export-plus": "^0.5.81",
|
||||||
"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",
|
||||||
|
|||||||
@ -1309,6 +1309,27 @@ export const addMissionRewards = async (
|
|||||||
logger.error(`unknown droptable ${si.DropTable} for DROP_BLUEPRINT`);
|
logger.error(`unknown droptable ${si.DropTable} for DROP_BLUEPRINT`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// e.g. H-09 Apex Turret Sumdali
|
||||||
|
if (si.DROP_MISC_ITEM) {
|
||||||
|
const resourceDroptable = droptables.find(x => x.type == "resource");
|
||||||
|
if (resourceDroptable) {
|
||||||
|
for (let i = 0; i != si.DROP_MISC_ITEM.length; ++i) {
|
||||||
|
const reward = getRandomReward(resourceDroptable.items)!;
|
||||||
|
logger.debug(`stripped droptable (resources pool) rolled`, reward);
|
||||||
|
if (Object.keys(await addItem(inventory, reward.type)).length == 0) {
|
||||||
|
logger.debug(`item already owned, skipping`);
|
||||||
|
} else {
|
||||||
|
MissionRewards.push({
|
||||||
|
StoreItem: toStoreItem(reward.type),
|
||||||
|
ItemCount: 1,
|
||||||
|
FromEnemyCache: true // to show "identified"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logger.error(`unknown droptable ${si.DropTable} for DROP_BLUEPRINT`);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -117,6 +117,7 @@ export type IMissionInventoryUpdateRequest = {
|
|||||||
DropTable: string;
|
DropTable: string;
|
||||||
DROP_MOD?: number[];
|
DROP_MOD?: number[];
|
||||||
DROP_BLUEPRINT?: number[];
|
DROP_BLUEPRINT?: number[];
|
||||||
|
DROP_MISC_ITEM?: number[];
|
||||||
}[];
|
}[];
|
||||||
DeathMarks?: string[];
|
DeathMarks?: string[];
|
||||||
Nemesis?: number;
|
Nemesis?: number;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user