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

chore: remove Tag="" from Missions (#4438)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4438 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

8d791e20
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -0
Modified src/services/inventoryService.ts +6 -0
@@ -3052,6 +3052,12 @@ export const cleanupInventory = (inventory: TInventoryDatabaseDocument): void =>
3052 3052 setupKahlSyndicate(inventory);
3053 3053 }
3054 3054
3055 index = inventory.Missions.findIndex(x => x.Tag == "");
3056 if (index != -1) {
3057 inventory.Missions.splice(index, 1);
3058 logger.debug(`removed mission completion of ""`);
3059 }
3060
3055 3061 const set = new Set<string>();
3056 3062 for (let i = 0; i != inventory.Affiliations.length; ) {
3057 3063 if (set.has(inventory.Affiliations[i].Tag)) {