From 3a1ff7fbbdb032ce49ccca92d91b597f1e2baa53 Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 20 Jan 2025 14:42:41 +0000 Subject: [PATCH] Botgen work --- Libraries/Core/Helpers/BotGeneratorHelper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Helpers/BotGeneratorHelper.cs b/Libraries/Core/Helpers/BotGeneratorHelper.cs index 668d87a9..563638d6 100644 --- a/Libraries/Core/Helpers/BotGeneratorHelper.cs +++ b/Libraries/Core/Helpers/BotGeneratorHelper.cs @@ -42,6 +42,7 @@ public class BotGeneratorHelper( .GetLatestValue(ContextVariableType.RAID_CONFIGURATION) ?.GetValue(); var raidIsNight = raidSettings?.TimeVariant == DateTimeEnum.PAST; + _botConfig.LootItemResourceRandomization.TryGetValue(botRole, out var randomisationSettings); Upd itemProperties = new(); @@ -82,7 +83,7 @@ public class BotGeneratorHelper( { HpResource = GetRandomizedResourceValue( itemTemplate.Properties.MaxHpResource ?? 0, - _botConfig.LootItemResourceRandomization[botRole ?? string.Empty].Meds + randomisationSettings?.Meds ) }; } @@ -93,7 +94,7 @@ public class BotGeneratorHelper( { HpPercent = GetRandomizedResourceValue( itemTemplate.Properties.MaxResource ?? 0, - _botConfig.LootItemResourceRandomization[botRole ?? string.Empty].Food + randomisationSettings?.Food ), }; }