its alive
This commit is contained in:
parent
fbe6f1b78e
commit
fa4ef7aa86
1 changed files with 8 additions and 7 deletions
|
|
@ -130,10 +130,10 @@ foreach ($player in $all_player_matches) {
|
|||
|
||||
|
||||
$savekillstats = @{
|
||||
|
||||
matchid = $match.id
|
||||
created = $match.createdAt
|
||||
stats = $killstat
|
||||
deathType = $match.stats.deathType
|
||||
winplace = (($all_player_matches | where-object { $_.playername -eq $player_name } ).player_matches | where-object { $_.id -eq $match.id }).stats.winplace
|
||||
}
|
||||
Write-Output "Writing to file $scriptroot/../data/killstats/$($match.id)_$player_name.json"
|
||||
|
|
@ -181,7 +181,7 @@ function Get-MatchStatsPlayer {
|
|||
if ($MatchType) {
|
||||
$filterProperty = 'matchType'
|
||||
}
|
||||
$alives = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).alive | Measure-Object -sum).sum
|
||||
#$alives = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).deathType | 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
|
||||
$dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.$filterProperty -like $typemodevalue }).dbno | Measure-Object -sum).sum
|
||||
|
|
@ -200,6 +200,7 @@ function Get-MatchStatsPlayer {
|
|||
write-host $change
|
||||
|
||||
$MatchStatsPlayer += [PSCustomObject]@{
|
||||
alives = $alives
|
||||
playername = $player
|
||||
deaths = $deaths
|
||||
kills = $kills
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue