mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:50:45 -05:00
Improve comments
This commit is contained in:
parent
4a6b658b28
commit
8b4847714c
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user