返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+7
-2
XFEstudio/SpaceNinjaServer
fix: increment LoreFragmentScans Progress when already present (#1022)
Fixes #1021 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1022 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>
2b8da4af
代码差异
1 个文件
+7
-2
@@ -176,8 +176,13 @@ export const addMissionInventoryUpdates = (
176
176
break;
177
177
}
178
178
case "LoreFragmentScans":
179
value.forEach(x => {
180
inventory.LoreFragmentScans.push(x);
179
value.forEach(clientFragment => {
180
const fragment = inventory.LoreFragmentScans.find(x => x.ItemType == clientFragment.ItemType);
181
if (fragment) {
182
fragment.Progress += clientFragment.Progress;
183
} else {
184
inventory.LoreFragmentScans.push(clientFragment);
185
}
181
186
});
182
187
break;
183
188
case "SyndicateId": {