Game/UpdateBank.ps1
if ($this.Status -like '*Player Busts*') { $this.Bank -= $this.Bet } elseif ($this.Status -like '*Player Blackjack*') { $this.Bank += ($this.Bet * 1.5) } elseif ($this.Status -like '*Dealer*' -and $this.Status -notlike '*Busts*') { $this.Bank -= $this.Bet } else { $this.Bank += $this.Bet } if ($this.Bank -lt 0) { Switch-Level -Name OutOfMoney return } |