Fixed nullref in AddExtraMagazinesToInventory

This commit is contained in:
Chomp
2025-01-26 21:33:19 +00:00
parent f131b3be02
commit 008fb8fd94
+7 -1
View File
@@ -42,7 +42,13 @@ public class BotGeneratorHelper(
.GetLatestValue(ContextVariableType.RAID_CONFIGURATION)
?.GetValue<GetRaidConfigurationRequestData>();
var raidIsNight = raidSettings?.TimeVariant == DateTimeEnum.PAST;
_botConfig.LootItemResourceRandomization.TryGetValue(botRole, out var randomisationSettings);
RandomisedResourceDetails randomisationSettings = null;
if (botRole is not null)
{
_botConfig.LootItemResourceRandomization.TryGetValue(botRole, out randomisationSettings);
}
Upd itemProperties = new();
var hasProperties = false;