fix: don't add unknown skin items to RawUpgrades (#918)
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (18) (push) Has been cancelled
Build / build (22) (push) Has been cancelled
Build / build (20) (push) Has been cancelled

Reviewed-on: #918
Co-authored-by: Sainan <sainan@calamity.inc>
Co-committed-by: Sainan <sainan@calamity.inc>
This commit is contained in:
Sainan 2025-02-07 02:07:18 -08:00 committed by OrdisPrime
parent 0f4c14531b
commit e8559bc09c

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]) {