fix: unable to add legendary core (#955)
Related to #952 Reviewed-on: #955
This commit is contained in:
parent
7ee8252d0e
commit
0e7c124d26
@ -415,20 +415,21 @@ export const addItem = async (
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "Upgrades": {
|
case "Upgrades": {
|
||||||
if (typeName.substr(1).split("/")[2] == "CosmeticEnhancers") {
|
switch (typeName.substr(1).split("/")[2]) {
|
||||||
// Needed to add Traumatic Peculiar
|
case "Mods": // Legendary Core
|
||||||
const changes = [
|
case "CosmeticEnhancers": // Traumatic Peculiar
|
||||||
{
|
const changes = [
|
||||||
ItemType: typeName,
|
{
|
||||||
ItemCount: quantity
|
ItemType: typeName,
|
||||||
}
|
ItemCount: quantity
|
||||||
];
|
}
|
||||||
addMods(inventory, changes);
|
];
|
||||||
return {
|
addMods(inventory, changes);
|
||||||
InventoryChanges: {
|
return {
|
||||||
RawUpgrades: changes
|
InventoryChanges: {
|
||||||
}
|
RawUpgrades: changes
|
||||||
};
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user