返回提交历史
Modified
package-lock.json
+4
-4
Modified
package.json
+1
-1
Modified
src/services/missionInventoryUpdateService.ts
+21
-0
Modified
src/types/requestTypes.ts
+1
-0
XFEstudio/XFESpaceNinjaServer
feat: handle CustomEOMTags for perita rebellion rewards (#3441)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3441 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: yhhkevin <yhhkevin@noreply.localhost> Co-committed-by: yhhkevin <yhhkevin@noreply.localhost>
36eeb520
代码差异
4 个文件
+27
-5
@@ -18,7 +18,7 @@
18
18
"morgan": "^1.10.0",
19
19
"ncp": "^2.0.0",
20
20
"undici": "^7.10.0",
21
"warframe-public-export-plus": "^0.5.100",
21
"warframe-public-export-plus": "^0.5.101",
22
22
"warframe-riven-info": "^0.1.2",
23
23
"winston": "^3.17.0",
24
24
"winston-daily-rotate-file": "^5.0.0",
@@ -3964,9 +3964,9 @@
3964
3964
}
3965
3965
},
3966
3966
"node_modules/warframe-public-export-plus": {
3967
"version": "0.5.100",
3968
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.100.tgz",
3969
"integrity": "sha512-WQAxD+wxhOKdFXWL6pD3dbnnMGAZQXgrVx6JLKCVQAr7nchE9dAGXJ84P+gI/ab5BECtIwDuZ5cT8dwPSjDIHg=="
3967
"version": "0.5.101",
3968
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.101.tgz",
3969
"integrity": "sha512-gicCnm400RzMhg0eRgOtgrvUTMzRWsd82319kj6aBOWy9Q6hEU8qVWWxkBa/YdAPHRf0QD1CkAq093p5VxAt3w=="
3970
3970
},
3971
3971
"node_modules/warframe-riven-info": {
3972
3972
"version": "0.1.2",
@@ -35,7 +35,7 @@
35
35
"morgan": "^1.10.0",
36
36
"ncp": "^2.0.0",
37
37
"undici": "^7.10.0",
38
"warframe-public-export-plus": "^0.5.100",
38
"warframe-public-export-plus": "^0.5.101",
39
39
"warframe-riven-info": "^0.1.2",
40
40
"winston": "^3.17.0",
41
41
"winston-daily-rotate-file": "^5.0.0",
@@ -132,6 +132,27 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
132
132
return [rewardInfo.rewardTier];
133
133
}
134
134
135
// For Oldpeace 12MinWar missions
136
// e.g. "CustomEOMTags":["12MinWarNumObjectives0"] & "CustomEOMTags":["12MinWarObjectiveComplete1","12MinWarObjectiveComplete2","12MinWarObjectiveComplete3","12MinWarNumObjectives9"]
137
if (rewardInfo.CustomEOMTags) {
138
const CustomEOMTags = rewardInfo.CustomEOMTags;
139
if (CustomEOMTags[CustomEOMTags.length - 1].substring(0, 21) == "12MinWarNumObjectives") {
140
// after the task is completed, you will receive 1 C round reward
141
const rotations = [2];
142
for (let a = 1; a < CustomEOMTags.length; ++a) {
143
// For each 3 commands completed, CustomEOMTags + 1, you will receive 1 A round reward
144
// e.g. rotations == [2] & [2, 0, 0, 0]
145
rotations.push(0);
146
}
147
for (let b = 0; b < Number(CustomEOMTags[CustomEOMTags.length - 1].substring(21)); ++b) {
148
// for each 1 command completed, 12MinWarNumObjectives + 1, you will receive 1 B round reward
149
// e.g. rotations == [2] & [2, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1]
150
rotations.push(1);
151
}
152
return rotations;
153
}
154
}
155
135
156
// 'rewardQualifications' may stick from previous missions for non-endless missions done after them
136
157
// - via railjack (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2586, https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2612)
137
158
// - via lab conquest (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2768)
@@ -201,6 +201,7 @@ export interface IRewardInfo extends IBountyRewardInfo {
201
201
sortieId?: string;
202
202
sortieTag?: "Mission1" | "Mission2" | "Final";
203
203
sortiePrereqs?: string[];
204
CustomEOMTags?: string[]; // for Old peace 12MinWar reward e.g. "CustomEOMTags":["12MinWarNumObjectives0"] & "CustomEOMTags":["12MinWarObjectiveComplete1","12MinWarObjectiveComplete2","12MinWarObjectiveComplete3","12MinWarNumObjectives9"]
204
205
VaultsCracked?: number; // for Spy missions
205
206
rewardTier?: number;
206
207
nightmareMode?: boolean;