Browse Source

[fixed] casino blackjack will now work in both infinite and sonnix players

sovietmercader 5 years ago
parent
commit
b17d5906f5
1 changed files with 8 additions and 8 deletions
  1. 8 8
      locations/casino.qsrc

+ 8 - 8
locations/casino.qsrc

@@ -1028,11 +1028,11 @@ if $ARGS[0] = 'blackjack_view':
 		end
 		i += 1
 		if dealerHand[i] ! 0: jump 'loop7'
-		:loop2
+		:loop8
 		if dealerPoints > 21 and numAces > 0:
 			dealerPoints -= 10
 			numAces -= 1
-			jump 'loop2'
+			jump 'loop8'
 		end
 		if dealerPoints > 21:
 			*p '<br>BUST!'
@@ -1045,12 +1045,12 @@ if $ARGS[0] = 'blackjack_view':
 
 	*pl '<br><br><u>Player</u>'
 	i = 0
-	:loop3
+	:loop9
 	numAces = 0
 	playerPoints[i] = 0
 	if numHands > 1: *pl 'Hand #<<i + 1>>:'
 	j = 0
-	:loop4
+	:loop10
 	if playerHand[i * 16 + j] ! 0:
 		*p '<img <<$set_imgh>> src="<<$deckImg[playerHand[i * 16 + j]]>>">'
 		if deckFace[playerHand[i * 16 + j]] = 1:
@@ -1062,13 +1062,13 @@ if $ARGS[0] = 'blackjack_view':
 			playerPoints[i] += deckFace[playerHand[i * 16 + j]]
 		end
 		j += 1
-		jump 'loop4'
+		jump 'loop10'
 	end
-	:loop8
+	:loop11
 	if playerPoints[i] > 21 and numAces > 0:
 		playerPoints[i] -= 10
 		numAces -= 1
-		jump 'loop8'
+		jump 'loop11'
 	end
 	if playerPoints[i] > 21:
 		*p '<br>BUST!'
@@ -1079,7 +1079,7 @@ if $ARGS[0] = 'blackjack_view':
 	end
 	*p ' Bet = <<playerBets[i]>> <b>₽</b><br><br>'
 	i += 1
-	if i < numHands: jump 'loop3'
+	if i < numHands: jump 'loop9'
 	*pl '</td><td valign="top"><div align="right"><img <<$set_imgh>> src="images/locations/city/industrial/casino/cartbd.jpg"></div></td></tr></table>'
 end