9ddbc91977
- Drastically improve performance, where non-threaded perf is now better than previous threaded perf - Process all data in-line, as opposed to building huge lists of bot data that is then processed in groups later - Memory footprint should now be relatively static no matter the amount of dumps
23 lines
730 B
C#
23 lines
730 B
C#
using Generator.Helpers.Gear;
|
|
using Common.Models.Input;
|
|
using Common.Models.Output;
|
|
using System.Diagnostics;
|
|
using Generator.Weighting;
|
|
|
|
namespace Generator
|
|
{
|
|
public static class BotChancesGenerator
|
|
{
|
|
public static void AddChances(Bot botToUpdate, Datum rawBot)
|
|
{
|
|
var weightHelper = new WeightingService();
|
|
|
|
// 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);
|
|
}
|
|
}
|
|
}
|