feat: tutorial and natural new player experience #983

Merged
OrdisPrime merged 7 commits from startinggear into main 2025-02-22 11:10:52 -08:00
Showing only changes of commit 6358c168ce - Show all commits

View File

@ -546,8 +546,7 @@ export const addSentinelWeapon = (
export const addPowerSuit = ( export const addPowerSuit = (
inventory: TInventoryDatabaseDocument, inventory: TInventoryDatabaseDocument,
powersuitName: string, powersuitName: string,
inventoryChanges: IInventoryChanges = {}, inventoryChanges: IInventoryChanges = {}
configs: IItemConfig[] = []
): IInventoryChanges => { ): IInventoryChanges => {
const specialItems = getExalted(powersuitName); const specialItems = getExalted(powersuitName);
if (specialItems) { if (specialItems) {
@ -555,7 +554,7 @@ export const addPowerSuit = (
addSpecialItem(inventory, specialItem, inventoryChanges); 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 ??= [];
inventoryChanges.Suits.push(inventory.Suits[suitIndex].toJSON<IEquipmentClient>()); inventoryChanges.Suits.push(inventory.Suits[suitIndex].toJSON<IEquipmentClient>());
return inventoryChanges; return inventoryChanges;