Add code to handle equipment chance overrides

add tagilla headwear override
This commit is contained in:
Chomp 2021-10-08 09:44:38 +01:00
parent ab3cb5dfc3
commit 349c342578
2 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,7 @@ namespace Generator
GearChanceHelpers.AddGenerationChances(botToUpdate); GearChanceHelpers.AddGenerationChances(botToUpdate);
GearChanceHelpers.CalculateModChances(botToUpdate, rawParsedBotOfCurrentType); GearChanceHelpers.CalculateModChances(botToUpdate, rawParsedBotOfCurrentType);
GearChanceHelpers.ApplyModChanceOverrides(botToUpdate); GearChanceHelpers.ApplyModChanceOverrides(botToUpdate);
GearChanceHelpers.ApplyEquipmentChanceOverrides(botToUpdate);
} }
stopwatch.Stop(); stopwatch.Stop();

View File

@ -82,6 +82,16 @@ namespace Generator.Helpers.Gear
kvp => GetPercent(kvp.Value, modCounts.GetValueOrDefault(kvp.Key))); kvp => GetPercent(kvp.Value, modCounts.GetValueOrDefault(kvp.Key)));
} }
internal static void ApplyEquipmentChanceOverrides(Bot botToUpdate)
{
switch (botToUpdate.botType)
{
case BotType.bosstagilla:
botToUpdate.chances.equipment.Headwear = 100;
break;
}
}
public static void ApplyModChanceOverrides(Bot botToUpdate) public static void ApplyModChanceOverrides(Bot botToUpdate)
{ {
switch (botToUpdate.botType) switch (botToUpdate.botType)