Remove AppContext, store profile related data in ProfileActivityService

This commit is contained in:
Archangel
2025-05-30 19:36:23 +02:00
parent 57c1935db6
commit 4e3c755e90
20 changed files with 108 additions and 214 deletions
@@ -1,5 +1,4 @@
using SPTarkov.DI.Annotations;
using SPTarkov.Server.Core.Context;
using SPTarkov.Server.Core.Controllers;
using SPTarkov.Server.Core.Models.Eft.Bot;
using SPTarkov.Server.Core.Models.Eft.Common;
@@ -11,8 +10,7 @@ namespace SPTarkov.Server.Core.Callbacks;
[Injectable]
public class BotCallbacks(
BotController _botController,
HttpResponseUtil _httpResponseUtil,
ApplicationContext _applicationContext
HttpResponseUtil _httpResponseUtil
)
{
/// <summary>
@@ -41,10 +39,7 @@ public class BotCallbacks(
return _httpResponseUtil.NoBody(_botController.GetBotCoreDifficulty());
}
var raidConfig = _applicationContext.GetLatestValue(ContextVariableType.RAID_CONFIGURATION)
?.GetValue<GetRaidConfigurationRequestData>();
return _httpResponseUtil.NoBody(_botController.GetBotDifficulty(type, difficulty, raidConfig));
return _httpResponseUtil.NoBody(_botController.GetBotDifficulty(sessionID, type, difficulty));
}
/// <summary>