From 537fe5dcd10ff7e6aee76661586788969f632463 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 8 Mar 2025 04:27:11 -0800 Subject: [PATCH] fix: ensure exalted weapons are given from giveStartingGear (#1092) Fixes #1020 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1092 Co-authored-by: Sainan Co-committed-by: Sainan --- src/controllers/api/giveStartingGearController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/giveStartingGearController.ts b/src/controllers/api/giveStartingGearController.ts index 118664b3..b8b09b2e 100644 --- a/src/controllers/api/giveStartingGearController.ts +++ b/src/controllers/api/giveStartingGearController.ts @@ -3,6 +3,7 @@ import { InventoryDocumentProps } from "@/src/models/inventoryModels/inventoryMo import { addEquipment, addItem, + addPowerSuit, combineInventoryChanges, getInventory, updateSlots @@ -52,7 +53,7 @@ export const addStartingGear = async ( addEquipment(inventory, "LongGuns", LongGuns[0].ItemType, undefined, inventoryChanges); addEquipment(inventory, "Pistols", Pistols[0].ItemType, undefined, inventoryChanges); addEquipment(inventory, "Melee", Melee[0].ItemType, undefined, inventoryChanges); - addEquipment(inventory, "Suits", Suits[0].ItemType, undefined, inventoryChanges, { Configs: Suits[0].Configs }); + addPowerSuit(inventory, Suits[0].ItemType, inventoryChanges); addEquipment( inventory, "DataKnives",