Compare commits

...

2 Commits

Author SHA1 Message Date
fc3bac9d8f prettier
All checks were successful
Build / build (push) Successful in 1m31s
Build / build (pull_request) Successful in 1m24s
2025-04-23 00:17:35 +02:00
106e87d3b1 feat: set IsNew flag on new sentinels
Some checks failed
Build / build (push) Has been cancelled
Build / build (pull_request) Failing after 43s
2025-04-23 00:17:08 +02:00

View File

@ -821,7 +821,8 @@ const addSentinel = (
const features = premiumPurchase ? EquipmentFeatures.DOUBLE_CAPACITY : undefined;
const sentinelIndex =
inventory.Sentinels.push({ ItemType: sentinelName, Configs: configs, XP: 0, Features: features }) - 1;
inventory.Sentinels.push({ ItemType: sentinelName, Configs: configs, XP: 0, Features: features, IsNew: true }) -
1;
inventoryChanges.Sentinels ??= [];
inventoryChanges.Sentinels.push(inventory.Sentinels[sentinelIndex].toJSON<IEquipmentClient>());