Fixed FilterBotEquipment nullref + others

Forced hideoutAreaStashes to show
Forced fastPanel to show

Forced bot min level to be no less than 1
This commit is contained in:
Chomp
2025-01-26 09:52:36 +00:00
parent f9bd5aecd3
commit 4cf908eaae
4 changed files with 14 additions and 11 deletions
@@ -435,7 +435,7 @@ public class BotEquipmentModGenerator(
_botConfig.Equipment.TryGetValue(request.BotData.EquipmentRole, out var botEquipConfig);
var botEquipBlacklist = _botEquipmentFilterService.GetBotEquipmentBlacklist(
request.BotData.EquipmentRole,
pmcProfile.Info.Level ?? 0
pmcProfile?.Info?.Level ?? 0
);
var botWeaponSightWhitelist = _botEquipmentFilterService.GetBotWeaponSightWhitelist(
request.BotData.EquipmentRole