Cap Peely Pix at 10 per ItemType, turn excess into Pix Chips
All checks were successful
Build / build (22) (pull_request) Successful in 1m8s
Build / build (20) (push) Successful in 42s
Build / build (22) (push) Successful in 1m9s
Build / build (18) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 47s
Build / build (20) (pull_request) Successful in 1m7s
All checks were successful
Build / build (22) (pull_request) Successful in 1m8s
Build / build (20) (push) Successful in 42s
Build / build (22) (push) Successful in 1m9s
Build / build (18) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 47s
Build / build (20) (pull_request) Successful in 1m7s
This commit is contained in:
parent
15e1586ae8
commit
9b110d528a
@ -559,7 +559,6 @@ export const addItem = async (
|
|||||||
switch (typeName.substr(1).split("/")[2]) {
|
switch (typeName.substr(1).split("/")[2]) {
|
||||||
case "Mods": // Legendary Core
|
case "Mods": // Legendary Core
|
||||||
case "CosmeticEnhancers": // Traumatic Peculiar
|
case "CosmeticEnhancers": // Traumatic Peculiar
|
||||||
case "Stickers":
|
|
||||||
{
|
{
|
||||||
const changes = [
|
const changes = [
|
||||||
{
|
{
|
||||||
@ -575,6 +574,39 @@ export const addItem = async (
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "Stickers":
|
||||||
|
{
|
||||||
|
const entry = inventory.RawUpgrades.find(x => x.ItemType == typeName);
|
||||||
|
if (entry && entry.ItemCount >= 10) {
|
||||||
|
const miscItemChanges = [
|
||||||
|
{
|
||||||
|
ItemType: "/Lotus/Types/Items/MiscItems/1999ConquestBucks",
|
||||||
|
ItemCount: 1
|
||||||
|
}
|
||||||
|
];
|
||||||
|
addMiscItems(inventory, miscItemChanges);
|
||||||
|
return {
|
||||||
|
InventoryChanges: {
|
||||||
|
MiscItems: miscItemChanges
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
const changes = [
|
||||||
|
{
|
||||||
|
ItemType: typeName,
|
||||||
|
ItemCount: quantity
|
||||||
|
}
|
||||||
|
];
|
||||||
|
addMods(inventory, changes);
|
||||||
|
return {
|
||||||
|
InventoryChanges: {
|
||||||
|
RawUpgrades: changes
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user