This commit is contained in:
JustArchi
2017-02-24 21:08:01 +01:00
parent ae75121274
commit 78f2cc2b52
3 changed files with 22 additions and 22 deletions

View File

@@ -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<Bot> botsRunning = new HashSet<Bot>(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);
}

View File

@@ -528,24 +528,6 @@ namespace ArchiSteamFarm.Localization {
}
}
/// <summary>
/// Looks up a localized string similar to Bot is not idling anything..
/// </summary>
internal static string BotsStatusNotIdling {
get {
return ResourceManager.GetString("BotsStatusNotIdling", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to There are {0}/{1} bots running, with total of {2} games ({3} cards) left to idle..
/// </summary>
internal static string BotsStatusOverview {
get {
return ResourceManager.GetString("BotsStatusOverview", resourceCulture);
}
}
/// <summary>
/// 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)..
/// </summary>
@@ -591,6 +573,15 @@ namespace ArchiSteamFarm.Localization {
}
}
/// <summary>
/// Looks up a localized string similar to Bot is not idling anything..
/// </summary>
internal static string BotStatusNotIdling {
get {
return ResourceManager.GetString("BotStatusNotIdling", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Bot is not running..
/// </summary>
@@ -600,6 +591,15 @@ namespace ArchiSteamFarm.Localization {
}
}
/// <summary>
/// Looks up a localized string similar to There are {0}/{1} bots running, with total of {2} games ({3} cards) left to idle..
/// </summary>
internal static string BotStatusOverview {
get {
return ResourceManager.GetString("BotStatusOverview", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Bot is paused or running in manual mode..
/// </summary>

View File

@@ -375,7 +375,7 @@ StackTrace:
<value>Couldn't find any bot named {0}!</value>
<comment>{0} will be replaced by bot's name query (string)</comment>
</data>
<data name="BotsStatusOverview" xml:space="preserve">
<data name="BotStatusOverview" xml:space="preserve">
<value>There are {0}/{1} bots running, with total of {2} games ({3} cards) left to idle.</value>
<comment>{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</comment>
</data>
@@ -602,7 +602,7 @@ StackTrace:
<data name="BotRemovedExpiredLoginKey" xml:space="preserve">
<value>Removed expired login key!</value>
</data>
<data name="BotsStatusNotIdling" xml:space="preserve">
<data name="BotStatusNotIdling" xml:space="preserve">
<value>Bot is not idling anything.</value>
</data>
<data name="BotStatusLimited" xml:space="preserve">