Explorar el Código

Merge branch 'master' of kirath/glife into master

[fix] casino blackjack bug
Kevin_Smarts hace 8 meses
padre
commit
ba8c0cf204
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      locations/casino.qsrc

+ 3 - 3
locations/casino.qsrc

@@ -861,9 +861,8 @@ if $ARGS[0] = 'insurance1':
 end
 
 if $ARGS[0] = 'insurance2':
-	if deckFace[dealerCards[1]] > 9: gs 'casino', 'blackjack_view', 1
-	if deckFace[dealerCards[1]] < 10: gs 'casino', 'blackjack_view'
-	if dealerPoints = 21:
+	if dealerPoints = 21 or deckFace[dealerHand[1]] > 9:
+      	gs 'casino', 'blackjack_view', 1
 		*pl 'DEALER WINS'
 		*p 'The dealer takes your <<playerBets[0]>> <b>₽</b> bet'
 		if insurance > 0: *p ' but also gives you <<insurance>> <b>₽</b> for your side bet'
@@ -872,6 +871,7 @@ if $ARGS[0] = 'insurance2':
 		money += insurance
 		act 'Continue' : gt 'casino', 'blackjack_play'
 	else
+      	gs 'casino', 'blackjack_view'
 		*pl 'The dealer takes a peek at his hole card; no blackjack.'
 		if insurance > 0: *p 'He relieves you of <<insurance>> <b>₽</b> for your side bet.'
 		money -= insurance