fixed limit

This commit is contained in:
MasterGordon 2024-10-15 22:23:57 +02:00
parent 10c64268c8
commit e89516c618
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ export const userController = createController({
if (!lootbox) { if (!lootbox) {
throw new Error("Lootbox not found"); throw new Error("Lootbox not found");
} }
removeGems(db, user, lootbox.price); await removeGems(db, user, lootbox.price);
const result = weightedPickRandom(lootbox.items, (i) => const result = weightedPickRandom(lootbox.items, (i) =>
getWeight(i.rarity), getWeight(i.rarity),
); );