Made use of EquipmentSlots enum

This commit is contained in:
Chomp
2025-01-15 00:04:44 +00:00
parent b6e4dde259
commit 5e79f02cbf
11 changed files with 338 additions and 43 deletions
+2 -2
View File
@@ -302,7 +302,7 @@ public class BotGenerator
// Filter out blacklisted gear from the base template
FilterBlacklistedGear(botJsonTemplate, botGenerationDetails);
bot.Inventory = _botInventoryGenerator.generateInventory(
bot.Inventory = _botInventoryGenerator.GenerateInventory(
sessionId,
botJsonTemplate,
botRoleLowercase,
@@ -407,7 +407,7 @@ public class BotGenerator
{
var blacklist = _botEquipmentFilterService.GetBotEquipmentBlacklist(
_botGeneratorHelper.GetBotEquipmentRole(botGenerationDetails.Role),
botGenerationDetails.PlayerLevel.Value);
botGenerationDetails.PlayerLevel.GetValueOrDefault(1));
if (blacklist?.Gear is null)
{