diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index a553eb8c..2ab822e6 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -546,8 +546,7 @@ export const addSentinelWeapon = ( export const addPowerSuit = ( inventory: TInventoryDatabaseDocument, powersuitName: string, - inventoryChanges: IInventoryChanges = {}, - configs: IItemConfig[] = [] + inventoryChanges: IInventoryChanges = {} ): IInventoryChanges => { const specialItems = getExalted(powersuitName); if (specialItems) { @@ -555,7 +554,7 @@ export const addPowerSuit = ( addSpecialItem(inventory, specialItem, inventoryChanges); } } - const suitIndex = inventory.Suits.push({ ItemType: powersuitName, Configs: configs, UpgradeVer: 101, XP: 0 }) - 1; + const suitIndex = inventory.Suits.push({ ItemType: powersuitName, Configs: [], UpgradeVer: 101, XP: 0 }) - 1; inventoryChanges.Suits ??= []; inventoryChanges.Suits.push(inventory.Suits[suitIndex].toJSON()); return inventoryChanges;