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
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:
parent
0fbf300d3e
commit
fe5d89c14a
@ -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]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user