2023-09-18 17:15:30 +01:00
|
|
|
|
using Generator.Helpers.Gear;
|
2021-09-18 22:36:59 +01:00
|
|
|
|
using Common.Models.Input;
|
|
|
|
|
using Common.Models.Output;
|
2021-08-27 21:34:12 +01:00
|
|
|
|
using System.Diagnostics;
|
2023-08-21 16:32:20 +01:00
|
|
|
|
using Generator.Weighting;
|
2021-08-27 21:34:12 +01:00
|
|
|
|
|
|
|
|
|
namespace Generator
|
|
|
|
|
{
|
2021-09-01 19:19:44 +03:00
|
|
|
|
public static class BotChancesGenerator
|
2021-08-27 21:34:12 +01:00
|
|
|
|
{
|
2024-11-03 23:29:50 -08:00
|
|
|
|
public static void AddChances(Bot botToUpdate, Datum rawBot)
|
2021-08-27 21:34:12 +01:00
|
|
|
|
{
|
2023-08-21 16:32:20 +01:00
|
|
|
|
var weightHelper = new WeightingService();
|
2021-08-27 21:34:12 +01:00
|
|
|
|
|
2024-11-03 23:29:50 -08:00
|
|
|
|
// TODO: Add check to make sure incoming bot list has gear
|
|
|
|
|
GearChanceHelpers.AddEquipmentChances(botToUpdate, rawBot);
|
|
|
|
|
GearChanceHelpers.AddGenerationChances(botToUpdate, weightHelper);
|
|
|
|
|
GearChanceHelpers.AddModChances(botToUpdate, rawBot);
|
|
|
|
|
GearChanceHelpers.AddEquipmentModChances(botToUpdate, rawBot);
|
2021-08-27 21:34:12 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-09-18 17:15:30 +01:00
|
|
|
|
}
|