Add sanitar to generation weights json

Choose last bot when choosing standing/skills/exp values
This commit is contained in:
Dev 2023-11-14 23:24:28 +00:00
parent 7c2d455b7b
commit 5a60d80448
2 changed files with 960 additions and 871 deletions

File diff suppressed because it is too large Load Diff

View File

@ -62,7 +62,7 @@ namespace Generator
private static void AddSkills(Bot botToUpdate, IEnumerable<Datum> rawBotsOfSameType)
{
var firstBotOfDesiredType = rawBotsOfSameType.FirstOrDefault();
var firstBotOfDesiredType = rawBotsOfSameType.Last();
// Find the smallest and biggest value for each skill
foreach (var skill in firstBotOfDesiredType.Skills.Common)
@ -91,7 +91,7 @@ namespace Generator
private static void AddStandingForKill(Bot botToUpdate, IEnumerable<Datum> rawBotsOfSameType)
{
var firstBotOfDesiredType = rawBotsOfSameType.FirstOrDefault();
var firstBotOfDesiredType = rawBotsOfSameType.Last();
botToUpdate.experience.standingForKill = firstBotOfDesiredType.Info.Settings.StandingForKill;
botToUpdate.experience.aggressorBonus = firstBotOfDesiredType.Info.Settings.AggressorBonus;
@ -99,7 +99,7 @@ namespace Generator
private static void AddExperience(Bot botToUpdate, IEnumerable<Datum> rawBotsOfSameType)
{
var firstBotOfDesiredType = rawBotsOfSameType.FirstOrDefault();
var firstBotOfDesiredType = rawBotsOfSameType.Last();
botToUpdate.experience.reward.min = firstBotOfDesiredType.Info.Settings.Experience;
botToUpdate.experience.reward.max = firstBotOfDesiredType.Info.Settings.Experience;