Boost rare item weights in slot machine (Covert x8, Classified x4, Extraordinary x10)

This commit is contained in:
root
2026-07-05 16:39:50 +00:00
parent 2570012c59
commit 95f3dc7f20
+12
View File
@@ -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)