From 8b4847714c46984b577721cca7581e86789dae60 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 30 Jul 2023 09:47:25 +0100 Subject: [PATCH] Improve comments --- .../Patches/RaidFix/BotTemplateLimitPatch.cs | 2 +- .../Patches/RaidFix/GetNewBotTemplatesPatch.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/project/Aki.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs b/project/Aki.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs index b4dbf6d..4768120 100644 --- a/project/Aki.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs +++ b/project/Aki.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs @@ -30,7 +30,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix private static void PatchPostfix(List __result, List wavesProfiles, List delayed) { /* - In short this method sums Limits by grouping wavesPropfiles collection by Role and Difficulty + Method sums Limits by grouping wavesPropfiles collection by Role and Difficulty then in each group sets Limit to 30, the remainder is stored in "delayed" collection. So we change Limit of each group. Clear delayed waves, we don't need them if we have enough loaded profiles and in method_2 it creates a lot of garbage. diff --git a/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs b/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs index f6dcc80..8b0cd34 100644 --- a/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs +++ b/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs @@ -22,6 +22,9 @@ namespace Aki.SinglePlayer.Patches.RaidFix _ = nameof(JobPriority.General); } + /// + /// BotsPresets.GetNewProfile() + /// public GetNewBotTemplatesPatch() { var desiredType = typeof(BotsPresets); @@ -94,7 +97,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix private static Profile GetFirstResult(Task task) { var result = task.Result[0]; - Logger.LogInfo($"{DateTime.Now:T} Loading bot {result.Info.Nickname} profile from server. role: {result.Info.Settings.Role} side: {result.Side}"); + Logger.LogInfo($"{DateTime.Now:T} Loading bot: {result.Info.Nickname} profile from server. Role: {result.Info.Settings.Role} Side: {result.Side}"); return result; }