forked from rDrama/rDrama
dfs
parent
c0982c2939
commit
72daaf9fd7
|
@ -64,15 +64,14 @@ class Blackjack:
|
|||
if self.command_word in in_text:
|
||||
for word in in_text.split():
|
||||
if self.command_word in word:
|
||||
try:
|
||||
wager = word[len(self.command_word):]
|
||||
wager_value = int(wager)
|
||||
except: break
|
||||
|
||||
if (wager_value < self.minimum_bet):
|
||||
break
|
||||
elif (wager_value > self.maximum_bet):
|
||||
break
|
||||
elif (wager_value > from_user.coins):
|
||||
break
|
||||
if (wager_value < self.minimum_bet): break
|
||||
elif (wager_value > self.maximum_bet): break
|
||||
elif (wager_value > from_user.coins): break
|
||||
|
||||
from_user.coins -= wager_value
|
||||
from_user.winnings -= wager_value
|
||||
|
|
Loading…
Reference in New Issue