Fix Consecutive Wins
This commit is contained in:
parent
966525b14d
commit
39ce4458f1
|
@ -295,9 +295,10 @@
|
|||
#End Region
|
||||
|
||||
Private Sub QuitGame()
|
||||
'Reset VoltorbFlipScreen's Levels
|
||||
'Reset VoltorbFlipScreen's Variables
|
||||
VoltorbFlip.VoltorbFlipScreen.CurrentLevel = 1
|
||||
VoltorbFlip.VoltorbFlipScreen.PreviousLevel = 1
|
||||
VoltorbFlip.VoltorbFlipScreen.ConsecutiveWins = 0
|
||||
|
||||
If JoinServerScreen.Online = True Then
|
||||
Core.ServersManager.ServerConnection.Disconnect()
|
||||
|
|
|
@ -39,7 +39,7 @@ Namespace VoltorbFlip
|
|||
|
||||
Public Shared Property CurrentCoins As Integer = 0
|
||||
Public Shared Property TotalCoins As Integer = -1
|
||||
Public Shared Property ConsequentWins As Integer = 0
|
||||
Public Shared Property ConsecutiveWins As Integer = 0
|
||||
Public Shared MaxCoins As Integer = 1
|
||||
|
||||
Public Board As List(Of List(Of Tile))
|
||||
|
@ -934,9 +934,9 @@ TryAgain:
|
|||
|
||||
TotalFlips += CurrentFlips
|
||||
CurrentFlips = 0
|
||||
ConsequentWins += 1
|
||||
ConsecutiveWins += 1
|
||||
|
||||
If ConsequentWins = 5 AndAlso TotalFlips >= 8 Then
|
||||
If ConsecutiveWins = 5 AndAlso TotalFlips >= 8 Then
|
||||
CurrentLevel = MaxLevel + 1
|
||||
Else
|
||||
If CurrentLevel < MaxLevel + 1 Then
|
||||
|
@ -1252,6 +1252,7 @@ TryAgain:
|
|||
SoundManager.PlaySound("VoltorbFlip\LoseGame", True)
|
||||
End If
|
||||
Screen.TextBox.Show("Oh no! You get 0 coins!")
|
||||
VoltorbFlipScreen.ConsecutiveWins = 0
|
||||
VoltorbFlipScreen.GameState = VoltorbFlipScreen.States.GameLost
|
||||
Else
|
||||
If VoltorbFlipScreen.CurrentCoins = 0 Then
|
||||
|
|
Loading…
Reference in New Issue