fix
This commit is contained in:
parent
03a212f36a
commit
b1ed6ba969
@ -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: object[] = delta[key];
|
||||
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: IBinChanges = delta[key];
|
||||
left.count += right.count;
|
||||
left.platinum += right.platinum;
|
||||
left.Slots += right.Slots;
|
||||
|
@ -105,20 +105,24 @@ export const giveKeyChainTriggeredItems = async (accountId: string, keyChain: st
|
||||
|
||||
if (itemType in ExportRecipes) {
|
||||
return {
|
||||
Recipes: [{
|
||||
Recipes: [
|
||||
{
|
||||
ItemType: itemType,
|
||||
ItemCount: 1
|
||||
}]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
if (itemType in ExportResources) {
|
||||
return {
|
||||
WishlistChanges: [itemType],
|
||||
MiscItems: [{
|
||||
MiscItems: [
|
||||
{
|
||||
ItemType: itemType,
|
||||
ItemCount: 1
|
||||
}]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ export interface IInboxReponseClient {
|
||||
url?: string;
|
||||
highPriority: boolean;
|
||||
lowPrioNewPlayers?: boolean;
|
||||
CrossPlatform?: boolean
|
||||
CrossPlatform?: boolean;
|
||||
date: IMongoDate;
|
||||
r: boolean;
|
||||
countedAtt?: ICountedAttDatabase[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user