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

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified src/services/inventoryService.ts +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 }