diff --git a/Core/Generators/BotGenerator.cs b/Core/Generators/BotGenerator.cs index 5ca0ae21..e9337162 100644 --- a/Core/Generators/BotGenerator.cs +++ b/Core/Generators/BotGenerator.cs @@ -463,7 +463,7 @@ public class BotGenerator List tplsToRemove = []; foreach (var item in propValue) { - if (ItemFilterService.IsLootableItemBlacklisted(item.Key)) + if (_itemFilterService.IsLootableItemBlacklisted(item.Key)) { tplsToRemove.Add(item.Key); } @@ -677,10 +677,10 @@ public class BotGenerator /// Skills to randomise /// Are the skills 'common' skills /// Skills with randomised progress values as an array - public List GetSkillsWithRandomisedProgressValue(Dictionary skills, bool isCommonSkills) + public List GetSkillsWithRandomisedProgressValue(Dictionary? skills, bool isCommonSkills) { - if (!skills.Any()) - return new List(); + if (skills is null) + return []; return skills.Select(kvp => {