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: use absolute value for mods from mission report (#3868)

Still a bit unsure about this, but should be fine... Closes #3863 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3868 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

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

代码差异

1 个文件 +1 -1
Modified src/services/missionInventoryUpdateService.ts +1 -1
@@ -563,7 +563,7 @@ export const addMissionInventoryUpdates = async (
563 563 addMods(inventory, [
564 564 {
565 565 ItemType: clientUpgrade.ItemType,
566 ItemCount: clientUpgrade.ItemCount
566 ItemCount: Math.abs(clientUpgrade.ItemCount) // U12 seems to provide a negative quantity for mods picked up during missions (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/3863)
567 567 }
568 568 ]);
569 569 } else {