feat: acquisition of peely pix + free pack for first visit #1292

Merged
Sainan merged 6 commits from free-stickers into main 2025-03-23 05:07:15 -07:00
Showing only changes of commit 9b110d528a - Show all commits

View File

@ -559,7 +559,6 @@ export const addItem = async (
switch (typeName.substr(1).split("/")[2]) {
case "Mods": // Legendary Core
case "CosmeticEnhancers": // Traumatic Peculiar
case "Stickers":
{
const changes = [
{
@ -575,6 +574,39 @@ export const addItem = async (
};
}
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;
}