Force non-pmc bots to have exp of 0 + level of 1

This commit is contained in:
Chomp
2025-01-26 10:00:35 +00:00
parent 4cf908eaae
commit 0cb8ca69e4
2 changed files with 9 additions and 0 deletions
@@ -27,6 +27,11 @@ public class BotLevelGenerator(
/// <returns>IRandomisedBotLevelResult object</returns>
public RandomisedBotLevelResult GenerateBotLevel(MinMax levelDetails, BotGenerationDetails botGenerationDetails, BotBase bot)
{
if (!botGenerationDetails.IsPmc.GetValueOrDefault(false))
{
return new RandomisedBotLevelResult() { Exp = 0, Level = 1 };
}
var expTable = _databaseService.GetGlobals().Configuration.Exp.Level.ExperienceTable;
var botLevelRange = GetRelativeBotLevelRange(botGenerationDetails, levelDetails, expTable.Length);