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: don't trigger G3 capture when LevelKeyName is present (#1699)

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

41d976d3
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -1
Modified src/services/missionInventoryUpdateService.ts +6 -1
@@ -128,11 +128,16 @@ export const addMissionInventoryUpdates = async (
128 128 ]);
129 129 }
130 130 }
131
132 // Somewhat heuristically detect G3 capture:
133 // - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1365
134 // - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1694
131 135 if (
132 136 inventoryUpdates.MissionFailed &&
133 137 inventoryUpdates.MissionStatus == "GS_FAILURE" &&
134 138 inventoryUpdates.ObjectiveReached &&
135 !inventoryUpdates.LockedWeaponGroup
139 !inventoryUpdates.LockedWeaponGroup &&
140 !inventoryUpdates.LevelKeyName
136 141 ) {
137 142 const loadout = (await Loadout.findById(inventory.LoadOutPresets, "NORMAL"))!;
138 143 const config = loadout.NORMAL.id(inventory.CurrentLoadOutIds[0].$oid)!;