Improved how bots are generated to be less blocking

Updated `GenerateBotWaves` to return empty results when request data is empty

Cleaned up `GenerateBotWave` to not need a manual lock
Improved `botRelativeLevelDelta` value in pmc.config

Updated `MatchBotDetailsCacheService` to store PMCs primary weapon tpl
This commit is contained in:
Chomp
2025-08-04 13:25:19 +01:00
parent cf99d9d824
commit e7fd757dce
8 changed files with 105 additions and 100 deletions
@@ -52,9 +52,9 @@ public class BotCallbacks(BotController botController, HttpResponseUtil httpResp
/// Handle client/game/bot/generate
/// </summary>
/// <returns></returns>
public ValueTask<string> GenerateBots(string url, GenerateBotsRequestData info, MongoId sessionID)
public async ValueTask<string> GenerateBots(string url, GenerateBotsRequestData info, MongoId sessionID)
{
return new ValueTask<string>(httpResponseUtil.GetBody(botController.Generate(sessionID, info)));
return httpResponseUtil.GetBody(await botController.Generate(sessionID, info));
}
/// <summary>