Skip to content

Commit

Permalink
The amount earned in messages are less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
PieTw3lve committed Jul 1, 2024
1 parent e033a66 commit ada7c5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/extensions/economy/blackjack.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def hit(self, button: miru.Button, ctx: miru.Context) -> None:
self.stop()
elif self.player.hand.score() == 21:
self.embed.title = 'Blackjack! You have won!' # Your hand value is exactly 21
self.embed.description = f"Your hand was exactly 21. You won πŸͺ™ {self.bet * 2}!"
self.embed.description = f"Your hand was exactly 21. You won πŸͺ™ {self.bet}!"
self.embed.color = get_setting('settings', 'embed_success_color')
self.embed.edit_field(0, "Dealer's Hand", f'{" ".join(self.dealer.cards())}\nValue: {self.dealer.hand.score()}')
self.embed.edit_field(1, "Your Hand", f'{" ".join(self.player.cards())}\nValue: {self.player.hand.score()}')
Expand All @@ -122,7 +122,7 @@ async def stand(self, button: miru.Button, ctx: miru.Context) -> None:

if self.dealer.is_busted():
self.embed.title = 'Dealer Bust!' # Dealer hand went over 21
self.embed.description = f"The dealer's hand went over 21, `Bust!`. You won πŸͺ™ {self.bet * 2}!"
self.embed.description = f"The dealer's hand went over 21, `Bust!`. You won πŸͺ™ {self.bet}!"
self.embed.color = get_setting('settings', 'embed_success_color')
self.embed.edit_field(0, "Dealer's Hand", f'{" ".join(self.dealer.cards())}\nValue: {self.dealer.hand.score()}')
self.embed.edit_field(1, "Your Hand", f'{" ".join(self.player.cards())}\nValue: {self.player.hand.score()}')
Expand All @@ -140,7 +140,7 @@ async def stand(self, button: miru.Button, ctx: miru.Context) -> None:
self.stop()
elif self.player.hand.score() > self.dealer.hand.score():
self.embed.title = 'You have won!' # Dealer has less value than you
self.embed.description = f"The dealer's hand had less value in their cards than your hand. You won πŸͺ™ {self.bet * 2}!"
self.embed.description = f"The dealer's hand had less value in their cards than your hand. You won πŸͺ™ {self.bet}!"
self.embed.color = get_setting('settings', 'embed_success_color')
self.embed.edit_field(0, "Dealer's Hand", f'{" ".join(self.dealer.cards())}\nValue: {self.dealer.hand.score()}')
self.embed.edit_field(1, "Your Hand", f'{" ".join(self.player.cards())}\nValue: {self.player.hand.score()}')
Expand Down Expand Up @@ -190,7 +190,7 @@ async def double(self, button: miru.Button, ctx: miru.Context) -> None:
return
elif self.player.hand.score() == 21:
self.embed.title = 'Blackjack! You have won!' # Your hand value is exactly 21
self.embed.description = f"Your hand was exactly 21. You won πŸͺ™ {self.bet * 2}!"
self.embed.description = f"Your hand was exactly 21. You won πŸͺ™ {self.bet}!"
self.embed.color = get_setting('settings', 'embed_success_color')
self.embed.edit_field(0, "Dealer's Hand", f'{" ".join(self.dealer.cards())}\nValue: {self.dealer.hand.score()}')
self.embed.edit_field(1, "Your Hand", f'{" ".join(self.player.cards())}\nValue: {self.player.hand.score()}')
Expand All @@ -209,7 +209,7 @@ async def double(self, button: miru.Button, ctx: miru.Context) -> None:

if self.dealer.is_busted():
self.embed.title = 'Dealer Bust!' # Dealer hand went over 21
self.embed.description = f"The dealer's hand went over 21, `Bust!`. You won πŸͺ™ {self.bet * 2}!"
self.embed.description = f"The dealer's hand went over 21, `Bust!`. You won πŸͺ™ {self.bet}!"
self.embed.color = get_setting('settings', 'embed_success_color')
self.embed.edit_field(0, "Dealer's Hand", f'{" ".join(self.dealer.cards())}\nValue: {self.dealer.hand.score()}')
self.embed.edit_field(1, "Your Hand", f'{" ".join(self.player.cards())}\nValue: {self.player.hand.score()}')
Expand All @@ -227,7 +227,7 @@ async def double(self, button: miru.Button, ctx: miru.Context) -> None:
self.stop()
elif self.player.hand.score() > self.dealer.hand.score():
self.embed.title = 'You have won!' # Dealer has less value than you
self.embed.description = f"The dealer's hand had less value in their cards than your hand. You won πŸͺ™ {self.bet * 2}!"
self.embed.description = f"The dealer's hand had less value in their cards than your hand. You won πŸͺ™ {self.bet}!"
self.embed.color = get_setting('settings', 'embed_success_color')
self.embed.edit_field(0, "Dealer's Hand", f'{" ".join(self.dealer.cards())}\nValue: {self.dealer.hand.score()}')
self.embed.edit_field(1, "Your Hand", f'{" ".join(self.player.cards())}\nValue: {self.player.hand.score()}')
Expand Down

0 comments on commit ada7c5a

Please sign in to comment.