This commit is contained in:
Master 2024-07-04 08:52:03 +08:00
parent 42a33908a1
commit 7d7b435c3a
3 changed files with 3 additions and 4 deletions

View File

@ -82,14 +82,14 @@ export const combineInventoryChanges = (InventoryChanges: IInventoryChanges, del
InventoryChanges[key] = delta[key];
} else if (Array.isArray(delta[key])) {
const left = InventoryChanges[key] as object[];
const right: object[] = delta[key] as object[];
const right = delta[key] as object[];
for (const item of right) {
left.push(item);
}
} else {
console.assert(key.substring(-3) == "Bin");
const left = InventoryChanges[key] as IBinChanges;
const right: IBinChanges = delta[key] as IBinChanges;
const right = delta[key] as IBinChanges;
left.count += right.count;
left.platinum += right.platinum;
left.Slots += right.Slots;

View File

@ -16,4 +16,3 @@ export const unlockShipFeature = async (accountId: string, shipFeature: string)
if (!personalRooms.Ship.Features.includes(shipFeature)) personalRooms.Ship.Features.push(shipFeature);
await personalRooms.save();
};

View File

@ -27,4 +27,4 @@ export interface IGiveKeyChainTriggeredMessageRequest {
KeyChain: string;
ChainStage: number;
Groups: IGiveKeyChainTriggeredMessageGroup[];
}
}