XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified src/services/inventoryService.ts +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