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: ignore assassin mission failure if recovery is still pending (#1726)

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

5eecf11b
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -0
Modified src/services/missionInventoryUpdateService.ts +2 -0
@@ -132,11 +132,13 @@ export const addMissionInventoryUpdates = async (
132 132 // Somewhat heuristically detect G3 capture:
133 133 // - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1365
134 134 // - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1694
135 // - https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1724
135 136 if (
136 137 inventoryUpdates.MissionFailed &&
137 138 inventoryUpdates.MissionStatus == "GS_FAILURE" &&
138 139 inventoryUpdates.ObjectiveReached &&
139 140 !inventoryUpdates.LockedWeaponGroup &&
141 !inventory.LockedWeaponGroup &&
140 142 !inventoryUpdates.LevelKeyName
141 143 ) {
142 144 const loadout = (await Loadout.findById(inventory.LoadOutPresets, "NORMAL"))!;