Boost rare item weights in slot machine (Covert x8, Classified x4, Extraordinary x10)
This commit is contained in:
+12
@@ -1621,6 +1621,18 @@ async def api_open_slot_case(
|
|||||||
|
|
||||||
adjusted_weights = get_adjusted_weights(db, user.id)
|
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:
|
if user.is_banned:
|
||||||
group1, item1 = pick_slot_reel(grouped_items, adjusted_weights)
|
group1, item1 = pick_slot_reel(grouped_items, adjusted_weights)
|
||||||
|
|||||||
Reference in New Issue
Block a user