This commit is contained in:
2025-08-29 12:01:50 -05:00
parent 000b119641
commit 94ebef11bd
11 changed files with 7 additions and 50 deletions

View File

@@ -6,13 +6,11 @@ from typing import Optional, Dict, List, Tuple
from .. import db
# ---- Tunables (override via constants.py if you want) ----
try:
from ..utils.constants import PACK_MIN_BET, PACK_SIZE, PACK_RARITY_WEIGHTS
except Exception:
PACK_MIN_BET = 50
PACK_SIZE = 5
# weights per rarity (sum doesn't need to be 1; we normalize)
PACK_RARITY_WEIGHTS = {
"Common": 600,
"Uncommon": 250,
@@ -22,10 +20,6 @@ except Exception:
"Mythic": 1,
}
# -----------------------------------------------------------------------------
# Catalog: id, emoji, display name, rarity, multiplier (× bet)
# Kept your original 25 items & IDs; expanded to 100 total.
# -----------------------------------------------------------------------------
CATALOG: List[Dict] = [
# ---------------------- Common (40) ----------------------
{"id":"cherry","emoji":"🍒","name":"Cherries","rarity":"Common","mult":0.10},
@@ -277,7 +271,6 @@ class PacksCollectionView(discord.ui.View):
return True
def _sync(self):
# enable/disable nav buttons based on current page
for c in self.children:
if isinstance(c, discord.ui.Button):
if c.custom_id == "first": c.disabled = (self.page <= 0)