fix: don't add unknown skin items to RawUpgrades #918

Merged
OrdisPrime merged 1 commits from fix-unknown-skin into main 2025-02-07 02:07:18 -08:00

View File

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