fix: limit booster pack purchases to a max quantity of 100 #1189

Merged
Sainan merged 2 commits from booster-pack-limit into main 2025-03-15 10:25:15 -07:00
Showing only changes of commit aeea2a1058 - Show all commits

View File

@ -368,7 +368,9 @@ const handleBoosterPackPurchase = async (
InventoryChanges: {}
};
if (quantity > 100) {
throw new Error("attempt to roll over 100 booster packs in a single go. possible but unlikely to be desirable for the user or the server.");
throw new Error(
"attempt to roll over 100 booster packs in a single go. possible but unlikely to be desirable for the user or the server."
);
}
for (let i = 0; i != quantity; ++i) {
for (const weights of pack.rarityWeightsPerRoll) {