rv
All checks were successful
Build / build (22) (push) Successful in 36s
Build / build (20) (push) Successful in 1m0s
Build / build (18) (push) Successful in 1m19s
Build / build (18) (pull_request) Successful in 37s
Build / build (20) (pull_request) Successful in 1m0s
Build / build (22) (pull_request) Successful in 1m8s
All checks were successful
Build / build (22) (push) Successful in 36s
Build / build (20) (push) Successful in 1m0s
Build / build (18) (push) Successful in 1m19s
Build / build (18) (pull_request) Successful in 37s
Build / build (20) (pull_request) Successful in 1m0s
Build / build (22) (pull_request) Successful in 1m8s
This commit is contained in:
parent
48c604d1ec
commit
6358c168ce
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user