Add code to handle equipment chance overrides
add tagilla headwear override
This commit is contained in:
parent
ab3cb5dfc3
commit
349c342578
@ -32,6 +32,7 @@ namespace Generator
|
||||
GearChanceHelpers.AddGenerationChances(botToUpdate);
|
||||
GearChanceHelpers.CalculateModChances(botToUpdate, rawParsedBotOfCurrentType);
|
||||
GearChanceHelpers.ApplyModChanceOverrides(botToUpdate);
|
||||
GearChanceHelpers.ApplyEquipmentChanceOverrides(botToUpdate);
|
||||
}
|
||||
|
||||
stopwatch.Stop();
|
||||
|
@ -82,6 +82,16 @@ namespace Generator.Helpers.Gear
|
||||
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)
|
||||
{
|
||||
switch (botToUpdate.botType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user