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 purchaseQuantity when giving mission rewards (#1446)

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

05c0c990
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -1
Modified src/services/missionInventoryUpdateService.ts +7 -1
@@ -537,7 +537,13 @@ export const addMissionRewards = async (
537 537 }
538 538
539 539 for (const reward of MissionRewards) {
540 const inventoryChange = await handleStoreItemAcquisition(reward.StoreItem, inventory, reward.ItemCount);
540 const inventoryChange = await handleStoreItemAcquisition(
541 reward.StoreItem,
542 inventory,
543 reward.ItemCount,
544 undefined,
545 true
546 );
541 547 //TODO: combineInventoryChanges improve type safety, merging 2 of the same item?
542 548 //TODO: check for the case when two of the same item are added, combineInventoryChanges should merge them, but the client also merges them
543 549 //TODO: some conditional types to rule out binchanges?