From aadc90b727e1b8945f1fcaf4d18142e7c924a463 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 27 Sep 2023 14:09:39 +0200 Subject: [PATCH] round to 4 dec --- discord/report_new_matches.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index fcb07c0..dace160 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -68,7 +68,7 @@ foreach ($winid in $new_win_matches) { write-output "creating tble for player $player" $win_stats += [PSCustomObject]@{ playername = $player - dmg_h = (($telemetry | where-object { $_._T -eq 'LOGPLAYERTAKEDAMAGE' } | where-object { $_.attacker.name -eq $player } | where-object { $_.victim.accountId -notlike "ai.*" } ).damage | Measure-Object -Sum).Sum + dmg_h = [math]::Round((($telemetry | where-object { $_._T -eq 'LOGPLAYERTAKEDAMAGE' } | where-object { $_.attacker.name -eq $player } | where-object { $_.victim.accountId -notlike "ai.*" } ).damage | Measure-Object -Sum).Sum, 4) dmg = ($all_winners_of_match | Where-Object { $_.name -eq $player }).damageDealt k_h = (($telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' } | where-object { $_.killer.name -eq $player } | where-object { $_.victim.accountId -notlike "ai.*" } )).count k_a = ($all_winners_of_match | Where-Object { $_.name -eq $player }).kills