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

This commit is contained in:
Sainan 2025-02-12 23:37:24 +01:00
parent 7e7e4e2eea
commit f00f5fafe1

View File

@ -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;
} }