@@ -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 ]} **!\n You 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 ]} **!\n You got **1 { large_loot [2 ]} **!\n You 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 ]} **!\n You got **1 { special_loot [2 ]} **!\n You got **1 { special_loot [3 ]} **!\n You got **1 { special_loot [4 ]} **!\n You got **1 { special_loot [5 ]} **!" , inline = False )
690690 await ctx .send (embed = localembed )
0 commit comments