fixed limit
This commit is contained in:
parent
10c64268c8
commit
e89516c618
|
|
@ -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),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue