From 2b0807ed383ba661c5eda1a6a0268b64bfdec017 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Tue, 3 Oct 2023 14:57:31 +0200 Subject: [PATCH] debug --- update/matchparser.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 483d5f4..00e22b4 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -19,13 +19,13 @@ function get-change { if ($winratio -eq 0) { $change = 0 } else { - # Decide how you want to handle this scenario +o $change = 0 } } else { $change = [math]::Round(($winratio - $winratio_old) , 2) } - + return $change } function get-killstats { @@ -121,7 +121,10 @@ foreach ($player in $all_player_matches.playername) { $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) - + write-output "Calculating for player $player" + write-output "new winratio $winratio" + write-output "Old winratio $winratio_old" + $playerstats_all += [PSCustomObject]@{ playername = $player