From 0915964a91265a4b869d3fc50fe264104d5bc1fa Mon Sep 17 00:00:00 2001 From: Yamato <66829532+louis1706@users.noreply.github.com> Date: Mon, 21 Aug 2023 23:27:22 +0200 Subject: [PATCH] Update ServerCountUpdater.cs for more Sexiled --- BLART/Modules/ServerCountUpdater.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BLART/Modules/ServerCountUpdater.cs b/BLART/Modules/ServerCountUpdater.cs index 8cc2278..3ff243d 100755 --- a/BLART/Modules/ServerCountUpdater.cs +++ b/BLART/Modules/ServerCountUpdater.cs @@ -31,8 +31,8 @@ public static async Task DoUpdate() } int exiledCount = servers.Count(s => GetServerNameFromInfo(s.Info).Contains("Exiled")); - double percent = (double) exiledCount / servers.Length * 100; - string text = $"EXILED Domination: {Math.Floor(percent)}%"; + double percent = Math.Floor((double) exiledCount / servers.Length * 100); + string text = percent is 69 ? $"SEXILED Domination: {percent}%" : $"EXILED Domination: {percent}%"; if (_total != 0 && _total == exiledCount) return; @@ -52,4 +52,4 @@ public static async Task DoUpdate() await Task.Delay(600000); } } -} \ No newline at end of file +}