From 78d6f78c56b3b412a6ab61fcb09e3c80dcf7bf7e Mon Sep 17 00:00:00 2001 From: milimoe Date: Sat, 21 Sep 2024 16:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B9=B3=E5=9D=87=E5=90=8D?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Tests/FunGame.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Tests/FunGame.cs b/Library/Tests/FunGame.cs index 82d70e1..8e7d513 100644 --- a/Library/Tests/FunGame.cs +++ b/Library/Tests/FunGame.cs @@ -406,7 +406,10 @@ namespace Milimoe.FunGame.Testing.Tests totalStats.Kills += stats.Kills; totalStats.Deaths += stats.Deaths; totalStats.Assists += stats.Assists; + totalStats.LastRank = stats.LastRank; + double totalRank = totalStats.AvgRank * totalStats.Plays + totalStats.LastRank; totalStats.Plays += stats.Plays; + if (totalStats.Plays != 0) totalStats.AvgRank = Calculation.Round2Digits(totalRank / totalStats.Plays); totalStats.Wins += stats.Wins; totalStats.Top3s += stats.Top3s; totalStats.Loses += stats.Loses;