返回提交历史
Modified
src/services/inventoryService.ts
+2
-1
XFEstudio/SpaceNinjaServer
feat: set IsNew flag on new sentinels (#1802)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1802 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
a85539a6
代码差异
1 个文件
+2
-1
@@ -825,7 +825,8 @@ const addSentinel = (
825
825
826
826
const features = premiumPurchase ? EquipmentFeatures.DOUBLE_CAPACITY : undefined;
827
827
const sentinelIndex =
828
inventory.Sentinels.push({ ItemType: sentinelName, Configs: configs, XP: 0, Features: features }) - 1;
828
inventory.Sentinels.push({ ItemType: sentinelName, Configs: configs, XP: 0, Features: features, IsNew: true }) -
829
1;
829
830
inventoryChanges.Sentinels ??= [];
830
831
inventoryChanges.Sentinels.push(inventory.Sentinels[sentinelIndex].toJSON<IEquipmentClient>());
831
832