返回提交历史
Modified
package-lock.json
+4
-4
Modified
package.json
+1
-1
Modified
src/controllers/api/missionInventoryUpdateController.ts
+5
-1
Modified
src/services/missionInventoryUpdateService.ts
+31
-0
Modified
src/types/requestTypes.ts
+1
-0
XFEstudio/SpaceNinjaServer
feat: resource reward along with duviri decree (#2066)
Closes #561 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2066 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
bfe2e93c
代码差异
5 个文件
+42
-6
@@ -18,7 +18,7 @@
18
18
"morgan": "^1.10.0",
19
19
"ncp": "^2.0.0",
20
20
"typescript": "^5.5",
21
"warframe-public-export-plus": "^0.5.60",
21
"warframe-public-export-plus": "^0.5.62",
22
22
"warframe-riven-info": "^0.1.2",
23
23
"winston": "^3.17.0",
24
24
"winston-daily-rotate-file": "^5.0.0"
@@ -3703,9 +3703,9 @@
3703
3703
}
3704
3704
},
3705
3705
"node_modules/warframe-public-export-plus": {
3706
"version": "0.5.60",
3707
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.60.tgz",
3708
"integrity": "sha512-vMfytUc4xRi+b7RTSq+TJEl91vwEegpQKxLtXwRPfs9ZHhntxc4rmDYSNWJTvgf/aWXsFUxQlqL/GV5OLPGM7g=="
3706
"version": "0.5.62",
3707
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.62.tgz",
3708
"integrity": "sha512-D8ZzjkU9rrK/59VqCfpMoV31HVmwHZV1dNZxPO85AOlcjg/G81Fu3kgITQTaw9sdNagLPLQnFaiXY58pxxRwgA=="
3709
3709
},
3710
3710
"node_modules/warframe-riven-info": {
3711
3711
"version": "0.1.2",
@@ -25,7 +25,7 @@
25
25
"morgan": "^1.10.0",
26
26
"ncp": "^2.0.0",
27
27
"typescript": "^5.5",
28
"warframe-public-export-plus": "^0.5.60",
28
"warframe-public-export-plus": "^0.5.62",
29
29
"warframe-riven-info": "^0.1.2",
30
30
"winston": "^3.17.0",
31
31
"winston-daily-rotate-file": "^5.0.0"
@@ -61,7 +61,11 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
61
61
62
62
if (
63
63
missionReport.MissionStatus !== "GS_SUCCESS" &&
64
!(missionReport.RewardInfo?.jobId || missionReport.RewardInfo?.challengeMissionId)
64
!(
65
missionReport.RewardInfo?.jobId ||
66
missionReport.RewardInfo?.challengeMissionId ||
67
missionReport.RewardInfo?.T
68
)
65
69
) {
66
70
if (missionReport.EndOfMatchUpload) {
67
71
inventory.RewardSeed = generateRewardSeed();
@@ -1416,6 +1416,37 @@ function getRandomMissionDrops(
1416
1416
} else {
1417
1417
rewardManifests = [];
1418
1418
}
1419
} else if (RewardInfo.T == 13) {
1420
// Undercroft extra/side portal (normal mode), gives 1 Pathos Clamp + Duviri Arcane.
1421
drops.push({
1422
StoreItem: "/Lotus/StoreItems/Types/Gameplay/Duviri/Resource/DuviriDragonDropItem",
1423
ItemCount: 1
1424
});
1425
rewardManifests = [
1426
"/Lotus/Types/Game/MissionDecks/DuviriEncounterRewards/DuviriStaticUndercroftResourceRewards"
1427
];
1428
} else if (RewardInfo.T == 14) {
1429
// Undercroft extra/side portal (steel path), gives 3 Pathos Clamps + Eidolon Arcane.
1430
drops.push({
1431
StoreItem: "/Lotus/StoreItems/Types/Gameplay/Duviri/Resource/DuviriDragonDropItem",
1432
ItemCount: 3
1433
});
1434
rewardManifests = [
1435
"/Lotus/Types/Game/MissionDecks/DuviriEncounterRewards/DuviriSteelPathStaticUndercroftResourceRewards"
1436
];
1437
} else if (RewardInfo.T == 15) {
1438
rewardManifests = [
1439
mission?.Tier == 1
1440
? "/Lotus/Types/Game/MissionDecks/DuviriEncounterRewards/DuviriKullervoSteelPathRNGRewards"
1441
: "/Lotus/Types/Game/MissionDecks/DuviriEncounterRewards/DuviriKullervoNormalRNGRewards"
1442
];
1443
} else if (RewardInfo.T == 70) {
1444
// Orowyrm chest, gives 10 Pathos Clamps, or 15 on Steel Path.
1445
drops.push({
1446
StoreItem: "/Lotus/StoreItems/Types/Gameplay/Duviri/Resource/DuviriDragonDropItem",
1447
ItemCount: mission?.Tier == 1 ? 15 : 10
1448
});
1449
rewardManifests = [];
1419
1450
} else {
1420
1451
rewardManifests = region.rewardManifests;
1421
1452
}
@@ -177,6 +177,7 @@ export interface IRewardInfo {
177
177
PurgatoryRewardQualifications?: string;
178
178
rewardSeed?: number | bigint;
179
179
periodicMissionTag?: string;
180
T?: number; // Duviri
180
181
ConquestType?: string;
181
182
ConquestCompleted?: number;
182
183
ConquestEquipmentSuggestionsFulfilled?: number;