返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+4
-2
XFEstudio/SpaceNinjaServer
fix: converting storeitems in missionRewards (#1017)
Fixes the acquisition of blueprints as rewards, such as those rewarded by the Junctions. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1017 Co-authored-by: VampireKitten <dynamightkobold@gmail.com> Co-committed-by: VampireKitten <dynamightkobold@gmail.com>
a27f1c5e
代码差异
1 个文件
+4
-2
@@ -351,7 +351,7 @@ export const addFixedLevelRewards = (
351
351
if (rewards.items) {
352
352
for (const item of rewards.items) {
353
353
MissionRewards.push({
354
StoreItem: `/Lotus/StoreItems${item.substring("Lotus/".length)}`,
354
StoreItem: item.includes(`/StoreItems/`) ? item : `/Lotus/StoreItems${item.substring("Lotus/".length)}`,
355
355
ItemCount: 1
356
356
});
357
357
}
@@ -359,7 +359,9 @@ export const addFixedLevelRewards = (
359
359
if (rewards.countedItems) {
360
360
for (const item of rewards.countedItems) {
361
361
MissionRewards.push({
362
StoreItem: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
362
StoreItem: item.ItemType.includes(`/StoreItems/`)
363
? item.ItemType
364
: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
363
365
ItemCount: item.ItemCount
364
366
});
365
367
}