forked from chomp/BotGenerator
Force tagilla to have 100% chance to spawn with stock + tactical item (fixes mp 155 ultima camera issue)
This commit is contained in:
parent
3fa8fe40e4
commit
7d74cb7c8f
@ -31,6 +31,7 @@ namespace Generator
|
|||||||
GearChanceHelpers.CalculateEquipmentChances(botToUpdate, rawParsedBotOfCurrentType);
|
GearChanceHelpers.CalculateEquipmentChances(botToUpdate, rawParsedBotOfCurrentType);
|
||||||
GearChanceHelpers.AddGenerationChances(botToUpdate);
|
GearChanceHelpers.AddGenerationChances(botToUpdate);
|
||||||
GearChanceHelpers.CalculateModChances(botToUpdate, rawParsedBotOfCurrentType);
|
GearChanceHelpers.CalculateModChances(botToUpdate, rawParsedBotOfCurrentType);
|
||||||
|
GearChanceHelpers.ApplyModChanceOverrides(botToUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
|
@ -82,6 +82,17 @@ namespace Generator.Helpers.Gear
|
|||||||
kvp => GetPercent(kvp.Value, modCounts.GetValueOrDefault(kvp.Key)));
|
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)
|
public static void AddGenerationChances(Bot bot)
|
||||||
{
|
{
|
||||||
bot.generation = new GenerationChances(
|
bot.generation = new GenerationChances(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user