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 15e1586ae8 - Show all commits

View File

@ -415,6 +415,15 @@ const handleBoosterPackPurchase = async (
"attempt to roll over 100 booster packs in a single go. possible but unlikely to be desirable for the user or the server." "attempt to roll over 100 booster packs in a single go. possible but unlikely to be desirable for the user or the server."
); );
} }
if (typeName == "/Lotus/Types/BoosterPacks/1999StickersPackEchoesArchimedeaFixed") {
for (const result of pack.components) {
purchaseResponse.BoosterPackItems += toStoreItem(result.Item) + ',{"lvl":0};';
combineInventoryChanges(
purchaseResponse.InventoryChanges,
(await addItem(inventory, result.Item, 1)).InventoryChanges
);
}
} else {
for (let i = 0; i != quantity; ++i) { for (let i = 0; i != quantity; ++i) {
for (const weights of pack.rarityWeightsPerRoll) { for (const weights of pack.rarityWeightsPerRoll) {
const result = getRandomWeightedRewardUc(pack.components, weights); const result = getRandomWeightedRewardUc(pack.components, weights);
@ -428,6 +437,7 @@ const handleBoosterPackPurchase = async (
} }
} }
} }
}
return purchaseResponse; return purchaseResponse;
}; };