Implemented CoreBot type

Enabled 'rudans' patrol flag in Christmas event
This commit is contained in:
Chomp
2025-09-29 09:33:16 +01:00
parent 499f6c67a3
commit 79e023392b
5 changed files with 436 additions and 12 deletions
@@ -31,12 +31,9 @@ public class BotCallbacks(BotController botController, HttpResponseUtil httpResp
var splitUrl = url.Split('/');
var type = splitUrl[^2].ToLowerInvariant();
var difficulty = splitUrl[^1];
if (difficulty == "core")
{
return new ValueTask<string>(httpResponseUtil.NoBody(botController.GetBotCoreDifficulty()));
}
return new ValueTask<string>(httpResponseUtil.NoBody(botController.GetBotDifficulty(sessionID, type, difficulty)));
return difficulty == "core"
? new ValueTask<string>(httpResponseUtil.NoBody(botController.GetBotCoreDifficulty()))
: new ValueTask<string>(httpResponseUtil.NoBody(botController.GetBotDifficulty(sessionID, type, difficulty)));
}
/// <summary>