Force tagilla to have 100% chance to spawn with stock + tactical item (fixes mp 155 ultima camera issue)

This commit is contained in:
Chomp 2021-09-08 08:00:39 +01:00
parent 3fa8fe40e4
commit 7d74cb7c8f
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -82,6 +82,17 @@ namespace Generator.Helpers.Gear
kvp => GetPercent(kvp.Value, modCounts.GetValueOrDefault(kvp.Key)));
}
public static void ApplyModChanceOverrides(Bot botToUpdate)
{
switch (botToUpdate.botType)
{
case BotType.bosstagilla:
botToUpdate.chances.mods["mod_tactical"] = 100; // force ultima thermal camera
botToUpdate.chances.mods["mod_stock"] = 100;
break;
}
}
public static void AddGenerationChances(Bot bot)
{
bot.generation = new GenerationChances(