Skip to content

Commit 85922d3

Browse files
committed
Fix incorrectly defined list names in large and special lootbox reward pools
1 parent dc2e548 commit 85922d3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

main.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -672,19 +672,19 @@ async def open(ctx:SlashContext, lootbox:str, amount:int):
672672
localembed.add_field(name="Coins gained", value=f"**{normal_loot[0]}** coins", inline=False)
673673
localembed.add_field(name="Items recieved", value=f"You got **1 {normal_loot[1]}**!\nYou got **1 {normal_loot[2]}**!", inline=False)
674674
if lootbox == "large":
675-
currency["wallet"][str(ctx.author.id)] += normal_loot[0]
676-
items[str(ctx.author.id)][normal_loot[1]] += 1
677-
items[str(ctx.author.id)][normal_loot[2]] += 1
678-
items[str(ctx.author.id)][normal_loot[3]] += 1
675+
currency["wallet"][str(ctx.author.id)] += large_loot[0]
676+
items[str(ctx.author.id)][large_loot[1]] += 1
677+
items[str(ctx.author.id)][large_loot[2]] += 1
678+
items[str(ctx.author.id)][large_loot[3]] += 1
679679
localembed.add_field(name="Coins gained", value=f"**{large_loot[0]}** coins", inline=False)
680680
localembed.add_field(name="Items recieved", value=f"You got **1 {large_loot[1]}**!\nYou got **1 {large_loot[2]}**!\nYou got **1 {large_loot[3]}**!", inline=False)
681681
if lootbox == "special":
682-
currency["wallet"][str(ctx.author.id)] += normal_loot[0]
683-
items[str(ctx.author.id)][normal_loot[1]] += 1
684-
items[str(ctx.author.id)][normal_loot[2]] += 1
685-
items[str(ctx.author.id)][normal_loot[3]] += 1
686-
items[str(ctx.author.id)][normal_loot[4]] += 1
687-
items[str(ctx.author.id)][normal_loot[5]] += 1
682+
currency["wallet"][str(ctx.author.id)] += special_loot[0]
683+
items[str(ctx.author.id)][special_loot[1]] += 1
684+
items[str(ctx.author.id)][special_loot[2]] += 1
685+
items[str(ctx.author.id)][special_loot[3]] += 1
686+
items[str(ctx.author.id)][special_loot[4]] += 1
687+
items[str(ctx.author.id)][special_loot[5]] += 1
688688
localembed.add_field(name="Coins gained", value=f"**{special_loot[0]}** coins", inline=False)
689689
localembed.add_field(name="Items recieved", value=f"You got **1 {special_loot[1]}**!\nYou got **1 {special_loot[2]}**!\nYou got **1 {special_loot[3]}**!\nYou got **1 {special_loot[4]}**!\nYou got **1 {special_loot[5]}**!", inline=False)
690690
await ctx.send(embed=localembed)

0 commit comments

Comments
 (0)