0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:10:45 -05:00

Improve comments

This commit is contained in:
Dev 2023-07-30 09:47:25 +01:00
parent 4a6b658b28
commit 8b4847714c
2 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix
private static void PatchPostfix(List<WaveInfo> __result, List<WaveInfo> wavesProfiles, List<WaveInfo> 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.

View File

@ -22,6 +22,9 @@ namespace Aki.SinglePlayer.Patches.RaidFix
_ = nameof(JobPriority.General);
}
/// <summary>
/// BotsPresets.GetNewProfile()
/// </summary>
public GetNewBotTemplatesPatch()
{
var desiredType = typeof(BotsPresets);
@ -94,7 +97,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix
private static Profile GetFirstResult(Task<Profile[]> 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;
}