From 78f2cc2b529f018c2e4d9cad6d875a59ee93cc9b Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 24 Feb 2017 21:08:01 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Bot.cs | 4 +-- .../Localization/Strings.Designer.cs | 36 +++++++++---------- ArchiSteamFarm/Localization/Strings.resx | 4 +-- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index c918d71e9..0e9e25b89 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -2793,7 +2793,7 @@ namespace ArchiSteamFarm { } if (CardsFarmer.CurrentGamesFarming.Count == 0) { - return FormatBotResponse(Strings.BotsStatusNotIdling); + return FormatBotResponse(Strings.BotStatusNotIdling); } if (CardsFarmer.CurrentGamesFarming.Count > 1) { @@ -2841,7 +2841,7 @@ namespace ArchiSteamFarm { } HashSet botsRunning = new HashSet(Bots.Values.Where(bot => bot.KeepRunning)); - string extraResponse = string.Format(Strings.BotsStatusOverview, botsRunning.Count, Bots.Count, botsRunning.Sum(bot => bot.CardsFarmer.GamesToFarm.Count), botsRunning.Sum(bot => bot.CardsFarmer.GamesToFarm.Sum(game => game.CardsRemaining))); + string extraResponse = string.Format(Strings.BotStatusOverview, botsRunning.Count, Bots.Count, botsRunning.Sum(bot => bot.CardsFarmer.GamesToFarm.Count), botsRunning.Sum(bot => bot.CardsFarmer.GamesToFarm.Sum(game => game.CardsRemaining))); return string.Join("", responses) + FormatStaticResponse(extraResponse); } diff --git a/ArchiSteamFarm/Localization/Strings.Designer.cs b/ArchiSteamFarm/Localization/Strings.Designer.cs index efa5d719a..55ac99e2e 100644 --- a/ArchiSteamFarm/Localization/Strings.Designer.cs +++ b/ArchiSteamFarm/Localization/Strings.Designer.cs @@ -528,24 +528,6 @@ namespace ArchiSteamFarm.Localization { } } - /// - /// Looks up a localized string similar to Bot is not idling anything.. - /// - internal static string BotsStatusNotIdling { - get { - return ResourceManager.GetString("BotsStatusNotIdling", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There are {0}/{1} bots running, with total of {2} games ({3} cards) left to idle.. - /// - internal static string BotsStatusOverview { - get { - return ResourceManager.GetString("BotsStatusOverview", resourceCulture); - } - } - /// /// Looks up a localized string similar to Bot is idling game: {0} ({1}, {2} card drops remaining) from a total of {3} games ({4} cards) left to idle (~{5} remaining).. /// @@ -591,6 +573,15 @@ namespace ArchiSteamFarm.Localization { } } + /// + /// Looks up a localized string similar to Bot is not idling anything.. + /// + internal static string BotStatusNotIdling { + get { + return ResourceManager.GetString("BotStatusNotIdling", resourceCulture); + } + } + /// /// Looks up a localized string similar to Bot is not running.. /// @@ -600,6 +591,15 @@ namespace ArchiSteamFarm.Localization { } } + /// + /// Looks up a localized string similar to There are {0}/{1} bots running, with total of {2} games ({3} cards) left to idle.. + /// + internal static string BotStatusOverview { + get { + return ResourceManager.GetString("BotStatusOverview", resourceCulture); + } + } + /// /// Looks up a localized string similar to Bot is paused or running in manual mode.. /// diff --git a/ArchiSteamFarm/Localization/Strings.resx b/ArchiSteamFarm/Localization/Strings.resx index dcf9a9b5e..bc5df416c 100644 --- a/ArchiSteamFarm/Localization/Strings.resx +++ b/ArchiSteamFarm/Localization/Strings.resx @@ -375,7 +375,7 @@ StackTrace: Couldn't find any bot named {0}! {0} will be replaced by bot's name query (string) - + There are {0}/{1} bots running, with total of {2} games ({3} cards) left to idle. {0} will be replaced by number of active bots, {1} will be replaced by total number of bots, {2} will be replaced by total number of games left to idle, {3} will be replaced by total number of cards left to idle @@ -602,7 +602,7 @@ StackTrace: Removed expired login key! - + Bot is not idling anything.