返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+6
-1
XFEstudio/SpaceNinjaServer
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
代码差异
1 个文件
+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)!;