返回提交历史
Modified
src/controllers/custom/unlockAllScansController.ts
+11
-0
XFEstudio/SpaceNinjaServer
chore: complete MPCephFragments challenge with unlock all scans (#4117)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4117 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
638a4aa8
代码差异
1 个文件
+11
-0
@@ -46,6 +46,17 @@ export const unlockAllScansController: RequestHandler = async (req, res) => {
46
46
});
47
47
}
48
48
49
// Complete the mars to phobos junction scan challenge for older versions
50
const mpCephFragments = inventory.ChallengeProgress.find(x => x.Name == "MPCephFragments");
51
if (mpCephFragments) {
52
mpCephFragments.Progress = 3;
53
} else {
54
inventory.ChallengeProgress.push({
55
Name: "MPCephFragments",
56
Progress: 3
57
});
58
}
59
49
60
// Unlock all kuria scans
50
61
inventory.CollectibleSeries ??= [];
51
62
let kuriaSeries = inventory.CollectibleSeries.find(