fix
This commit is contained in:
parent
42a33908a1
commit
7d7b435c3a
@ -82,14 +82,14 @@ export const combineInventoryChanges = (InventoryChanges: IInventoryChanges, del
|
|||||||
InventoryChanges[key] = delta[key];
|
InventoryChanges[key] = delta[key];
|
||||||
} else if (Array.isArray(delta[key])) {
|
} else if (Array.isArray(delta[key])) {
|
||||||
const left = InventoryChanges[key] as object[];
|
const left = InventoryChanges[key] as object[];
|
||||||
const right: object[] = delta[key] as object[];
|
const right = delta[key] as object[];
|
||||||
for (const item of right) {
|
for (const item of right) {
|
||||||
left.push(item);
|
left.push(item);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.assert(key.substring(-3) == "Bin");
|
console.assert(key.substring(-3) == "Bin");
|
||||||
const left = InventoryChanges[key] as IBinChanges;
|
const left = InventoryChanges[key] as IBinChanges;
|
||||||
const right: IBinChanges = delta[key] as IBinChanges;
|
const right = delta[key] as IBinChanges;
|
||||||
left.count += right.count;
|
left.count += right.count;
|
||||||
left.platinum += right.platinum;
|
left.platinum += right.platinum;
|
||||||
left.Slots += right.Slots;
|
left.Slots += right.Slots;
|
||||||
|
@ -16,4 +16,3 @@ export const unlockShipFeature = async (accountId: string, shipFeature: string)
|
|||||||
if (!personalRooms.Ship.Features.includes(shipFeature)) personalRooms.Ship.Features.push(shipFeature);
|
if (!personalRooms.Ship.Features.includes(shipFeature)) personalRooms.Ship.Features.push(shipFeature);
|
||||||
await personalRooms.save();
|
await personalRooms.save();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,4 +27,4 @@ export interface IGiveKeyChainTriggeredMessageRequest {
|
|||||||
KeyChain: string;
|
KeyChain: string;
|
||||||
ChainStage: number;
|
ChainStage: number;
|
||||||
Groups: IGiveKeyChainTriggeredMessageGroup[];
|
Groups: IGiveKeyChainTriggeredMessageGroup[];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user