This commit is contained in:
Lanta 2024-07-16 21:21:32 +02:00
parent d7901c3393
commit 06c09ec7be

View file

@ -181,6 +181,7 @@ function Get-MatchStatsPlayer {
if ($MatchType) { if ($MatchType) {
$filterProperty = 'matchType' $filterProperty = 'matchType'
} }
$alives = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).alive | Measure-Object -sum).sum
$deaths = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).deaths | Measure-Object -sum).sum $deaths = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).deaths | Measure-Object -sum).sum
$kills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).kills | Measure-Object -sum).sum $kills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).kills | Measure-Object -sum).sum
$dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).dbno | Measure-Object -sum).sum $dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).dbno | Measure-Object -sum).sum
@ -204,7 +205,7 @@ function Get-MatchStatsPlayer {
kills = $kills kills = $kills
humankills = $humankills humankills = $humankills
matches = $player_matches matches = $player_matches
KD_H = $humankills / $deaths KD_H = $humankills / ($deaths + $alives)
KD_ALL = $kills / $deaths KD_ALL = $kills / $deaths
winratio = $winratio winratio = $winratio
wins = $player_wins wins = $player_wins