diff --git a/Libraries/Core/Generators/BotLevelGenerator.cs b/Libraries/Core/Generators/BotLevelGenerator.cs index 68b005ba..9ad65e16 100644 --- a/Libraries/Core/Generators/BotLevelGenerator.cs +++ b/Libraries/Core/Generators/BotLevelGenerator.cs @@ -27,6 +27,11 @@ public class BotLevelGenerator( /// IRandomisedBotLevelResult object 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); diff --git a/Libraries/Core/Models/Eft/Common/Tables/BotBase.cs b/Libraries/Core/Models/Eft/Common/Tables/BotBase.cs index 7b903979..f8659e0b 100644 --- a/Libraries/Core/Models/Eft/Common/Tables/BotBase.cs +++ b/Libraries/Core/Models/Eft/Common/Tables/BotBase.cs @@ -158,6 +158,8 @@ public record Info public int? PrestigeLevel { get; set; } public string? Voice { get; set; } public int? Level { get; set; } + + ///Experience the bot has gained public int? Experience { get; set; } public List? Bans { get; set; } public bool? BannedState { get; set; } @@ -198,6 +200,8 @@ public record BotInfoSettings { public string? Role { get; set; } public string? BotDifficulty { get; set; } + + // Experience given for being killed public int? Experience { get; set; } public double? StandingForKill { get; set; } public double? AggressorBonus { get; set; }