mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-04-22 04:09:34 +08:00
添加平均名次
This commit is contained in:
parent
53b9890a13
commit
78d6f78c56
@ -406,7 +406,10 @@ namespace Milimoe.FunGame.Testing.Tests
|
|||||||
totalStats.Kills += stats.Kills;
|
totalStats.Kills += stats.Kills;
|
||||||
totalStats.Deaths += stats.Deaths;
|
totalStats.Deaths += stats.Deaths;
|
||||||
totalStats.Assists += stats.Assists;
|
totalStats.Assists += stats.Assists;
|
||||||
|
totalStats.LastRank = stats.LastRank;
|
||||||
|
double totalRank = totalStats.AvgRank * totalStats.Plays + totalStats.LastRank;
|
||||||
totalStats.Plays += stats.Plays;
|
totalStats.Plays += stats.Plays;
|
||||||
|
if (totalStats.Plays != 0) totalStats.AvgRank = Calculation.Round2Digits(totalRank / totalStats.Plays);
|
||||||
totalStats.Wins += stats.Wins;
|
totalStats.Wins += stats.Wins;
|
||||||
totalStats.Top3s += stats.Top3s;
|
totalStats.Top3s += stats.Top3s;
|
||||||
totalStats.Loses += stats.Loses;
|
totalStats.Loses += stats.Loses;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user