XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

feat: h-09 apex turret sumdali reward (#2633)

Closes #2630 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2633 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

5d5554a8
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

4 个文件 +27 -5
Modified package-lock.json +4 -4
@@ -23,7 +23,7 @@
23 23 "ncp": "^2.0.0",
24 24 "typescript": "^5.5",
25 25 "undici": "^7.10.0",
26 "warframe-public-export-plus": "^0.5.80",
26 "warframe-public-export-plus": "^0.5.81",
27 27 "warframe-riven-info": "^0.1.2",
28 28 "winston": "^3.17.0",
29 29 "winston-daily-rotate-file": "^5.0.0",
@@ -5507,9 +5507,9 @@
5507 5507 }
5508 5508 },
5509 5509 "node_modules/warframe-public-export-plus": {
5510 "version": "0.5.80",
5511 "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.80.tgz",
5512 "integrity": "sha512-K5f1Ws3szVdnO0tBcxlNdhXoGHIw09cjHel7spKPGL7aF/vmEkbBGRmYQFvs8n5cGo+v+3qIDMre54Ghb3t0Iw=="
5510 "version": "0.5.81",
5511 "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.81.tgz",
5512 "integrity": "sha512-kh3e21XThVDSwdC3TJsMsXZnlZ4B/21HdeJkKcjuTygpCd842EPEKS3lRZl3mpXFOmdha744vAW1XEyHfiLofg=="
5513 5513 },
5514 5514 "node_modules/warframe-riven-info": {
5515 5515 "version": "0.1.2",
Modified package.json +1 -1
@@ -40,7 +40,7 @@
40 40 "ncp": "^2.0.0",
41 41 "typescript": "^5.5",
42 42 "undici": "^7.10.0",
43 "warframe-public-export-plus": "^0.5.80",
43 "warframe-public-export-plus": "^0.5.81",
44 44 "warframe-riven-info": "^0.1.2",
45 45 "winston": "^3.17.0",
46 46 "winston-daily-rotate-file": "^5.0.0",
Modified src/services/missionInventoryUpdateService.ts +21 -0
@@ -1309,6 +1309,27 @@ export const addMissionRewards = async (
1309 1309 logger.error(`unknown droptable ${si.DropTable} for DROP_BLUEPRINT`);
1310 1310 }
1311 1311 }
1312 // e.g. H-09 Apex Turret Sumdali
1313 if (si.DROP_MISC_ITEM) {
1314 const resourceDroptable = droptables.find(x => x.type == "resource");
1315 if (resourceDroptable) {
1316 for (let i = 0; i != si.DROP_MISC_ITEM.length; ++i) {
1317 const reward = getRandomReward(resourceDroptable.items)!;
1318 logger.debug(`stripped droptable (resources pool) rolled`, reward);
1319 if (Object.keys(await addItem(inventory, reward.type)).length == 0) {
1320 logger.debug(`item already owned, skipping`);
1321 } else {
1322 MissionRewards.push({
1323 StoreItem: toStoreItem(reward.type),
1324 ItemCount: 1,
1325 FromEnemyCache: true // to show "identified"
1326 });
1327 }
1328 }
1329 } else {
1330 logger.error(`unknown droptable ${si.DropTable} for DROP_BLUEPRINT`);
1331 }
1332 }
1312 1333 }
1313 1334 }
1314 1335
Modified src/types/requestTypes.ts +1 -0
@@ -117,6 +117,7 @@ export type IMissionInventoryUpdateRequest = {
117 117 DropTable: string;
118 118 DROP_MOD?: number[];
119 119 DROP_BLUEPRINT?: number[];
120 DROP_MISC_ITEM?: number[];
120 121 }[];
121 122 DeathMarks?: string[];
122 123 Nemesis?: number;