From 95f3dc7f20db2cf4d209ac9c9b09b4fd8e40f84f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 5 Jul 2026 16:39:50 +0000 Subject: [PATCH] Boost rare item weights in slot machine (Covert x8, Classified x4, Extraordinary x10) --- frontend.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend.py b/frontend.py index 6fd32a4..a859b4c 100644 --- a/frontend.py +++ b/frontend.py @@ -1621,6 +1621,18 @@ async def api_open_slot_case( adjusted_weights = get_adjusted_weights(db, user.id) + # Буст для слотов: чаще выпадают активки + SLOT_RARITY_BOOST = { + "Covert": 8, + "Classified": 4, + "Restricted": 2, + "Rare Special Item": 12, + "Extraordinary": 10 + } + for rarity, boost in SLOT_RARITY_BOOST.items(): + if rarity in adjusted_weights: + adjusted_weights[rarity] *= boost + # Баним: принудительно разные группы на всех барабанах if user.is_banned: group1, item1 = pick_slot_reel(grouped_items, adjusted_weights)