Botgen work

This commit is contained in:
Chomp
2025-01-20 14:42:41 +00:00
parent f15f7fef56
commit 3a1ff7fbbd
+3 -2
View File
@@ -42,6 +42,7 @@ public class BotGeneratorHelper(
.GetLatestValue(ContextVariableType.RAID_CONFIGURATION) .GetLatestValue(ContextVariableType.RAID_CONFIGURATION)
?.GetValue<GetRaidConfigurationRequestData>(); ?.GetValue<GetRaidConfigurationRequestData>();
var raidIsNight = raidSettings?.TimeVariant == DateTimeEnum.PAST; var raidIsNight = raidSettings?.TimeVariant == DateTimeEnum.PAST;
_botConfig.LootItemResourceRandomization.TryGetValue(botRole, out var randomisationSettings);
Upd itemProperties = new(); Upd itemProperties = new();
@@ -82,7 +83,7 @@ public class BotGeneratorHelper(
{ {
HpResource = GetRandomizedResourceValue( HpResource = GetRandomizedResourceValue(
itemTemplate.Properties.MaxHpResource ?? 0, itemTemplate.Properties.MaxHpResource ?? 0,
_botConfig.LootItemResourceRandomization[botRole ?? string.Empty].Meds randomisationSettings?.Meds
) )
}; };
} }
@@ -93,7 +94,7 @@ public class BotGeneratorHelper(
{ {
HpPercent = GetRandomizedResourceValue( HpPercent = GetRandomizedResourceValue(
itemTemplate.Properties.MaxResource ?? 0, itemTemplate.Properties.MaxResource ?? 0,
_botConfig.LootItemResourceRandomization[botRole ?? string.Empty].Food randomisationSettings?.Food
), ),
}; };
} }