fix: unable to add legendary core
All checks were successful
Build / build (18) (push) Successful in 36s
Build / build (20) (push) Successful in 56s
Build / build (22) (pull_request) Successful in 32s
Build / build (22) (push) Successful in 33s
Build / build (20) (pull_request) Successful in 55s
Build / build (18) (pull_request) Successful in 1m14s
All checks were successful
Build / build (18) (push) Successful in 36s
Build / build (20) (push) Successful in 56s
Build / build (22) (pull_request) Successful in 32s
Build / build (22) (push) Successful in 33s
Build / build (20) (pull_request) Successful in 55s
Build / build (18) (pull_request) Successful in 1m14s
This commit is contained in:
parent
7e7e4e2eea
commit
f00f5fafe1
@ -415,20 +415,21 @@ export const addItem = async (
|
||||
}
|
||||
break;
|
||||
case "Upgrades": {
|
||||
if (typeName.substr(1).split("/")[2] == "CosmeticEnhancers") {
|
||||
// Needed to add Traumatic Peculiar
|
||||
const changes = [
|
||||
{
|
||||
ItemType: typeName,
|
||||
ItemCount: quantity
|
||||
}
|
||||
];
|
||||
addMods(inventory, changes);
|
||||
return {
|
||||
InventoryChanges: {
|
||||
RawUpgrades: changes
|
||||
}
|
||||
};
|
||||
switch (typeName.substr(1).split("/")[2]) {
|
||||
case "Mods": // Legendary Core
|
||||
case "CosmeticEnhancers": // Traumatic Peculiar
|
||||
const changes = [
|
||||
{
|
||||
ItemType: typeName,
|
||||
ItemCount: quantity
|
||||
}
|
||||
];
|
||||
addMods(inventory, changes);
|
||||
return {
|
||||
InventoryChanges: {
|
||||
RawUpgrades: changes
|
||||
}
|
||||
};
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user