Skip to content

Commit

Permalink
updated odds
Browse files Browse the repository at this point in the history
  • Loading branch information
2vw committed Mar 7, 2024
1 parent af8ac7c commit edee56c
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions cogs/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,17 +999,24 @@ async def slots_game(ctx, amount: int):
return await ctx.reply(embed=embed)

emojis = { # The emojis and their values
"🍎": 1, # Apple
"🍊": 4, # Orange
"πŸ‡": 8, # Grapes
"πŸ“": 2, # Strawberry
"πŸ’": 5, # Cherry
"7️⃣": 100, # 7
"πŸ—‘οΈ": (0, 0.05), # Trash can
"🍎": (1, 0.08), # Apple
"🍊": (4, 0.01), # Orange
"πŸ‡": (8, 0.03), # Grapes
"πŸ“": (2, 0.06), # Strawberry
"πŸ’": (5, 0.04), # Cherry
"7️⃣": (100, 0.005), # 7
}

a = random.choice(list(emojis.keys()))
b = random.choice(list(emojis.keys()))
c = random.choice(list(emojis.keys()))
a = random.choice([x for x, (y, z) in emojis.items() if random.uniform(0, 1) < z])
if random.uniform(0, 1) < 0.95:
b = a
else:
b = random.choice([x for x, (y, z) in emojis.items() if random.uniform(0, 1) < z])
if random.uniform(0, 1) < 0.99:
c = b
else:
c = random.choice([x for x, (y, z) in emojis.items() if random.uniform(0, 1) < z])

embed = voltage.SendableEmbed(
title=ctx.author.display_name,
Expand Down

0 comments on commit edee56c

Please sign in to comment.