返回提交历史
Modified
src/services/inventoryService.ts
+2
-2
XFEstudio/SpaceNinjaServer
fix: push kahl challenge progress to last WeeklyMissions entry (#4321)
Closes #4319 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4321 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0a70f885
代码差异
1 个文件
+2
-2
@@ -2803,8 +2803,8 @@ export const addKahlProgress = (
2803
2803
): void => {
2804
2804
for (const info of value) {
2805
2805
let stockEarned = 0;
2806
const affiliation = inventory.Affiliations.find(x => x.Tag == info.Syndicate);
2807
const mission = affiliation!.WeeklyMissions![0];
2806
const kahl = inventory.Affiliations.find(x => x.Tag == info.Syndicate)!;
2807
const mission = kahl.WeeklyMissions![kahl.WeeklyMissions!.length - 1];
2808
2808
if (info.ResetChallenges) {
2809
2809
mission.CompletedMission = true;
2810
2810
}