fix: don't add unknown skin items to RawUpgrades
All checks were successful
Build / build (18) (push) Successful in 35s
Build / build (20) (push) Successful in 50s
Build / build (22) (push) Successful in 31s
Build / build (22) (pull_request) Successful in 34s
Build / build (20) (pull_request) Successful in 52s
Build / build (18) (pull_request) Successful in 1m15s

This commit is contained in:
Sainan 2025-02-06 21:31:55 +01:00
parent 0fbf300d3e
commit fe5d89c14a

View File

@ -415,19 +415,22 @@ export const addItem = async (
}
break;
case "Upgrades": {
// Needed to add Traumatic Peculiar
const changes = [
{
ItemType: typeName,
ItemCount: quantity
}
];
addMods(inventory, changes);
return {
InventoryChanges: {
RawUpgrades: changes
}
};
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
}
};
}
break;
}
case "Types":
switch (typeName.substr(1).split("/")[2]) {