From d8e216d7732d3eb6b9830f14f349708ff4c6ae4b Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 18 Aug 2021 21:42:49 +0100 Subject: [PATCH] Fix issue where loops were being ended too soon --- Generator/BaseBotGenerator.cs | 2 +- Generator/BotGearGenerator.cs | 2 +- Generator/BotLootGenerator.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Generator/BaseBotGenerator.cs b/Generator/BaseBotGenerator.cs index 5be1650..2666afe 100644 --- a/Generator/BaseBotGenerator.cs +++ b/Generator/BaseBotGenerator.cs @@ -63,7 +63,7 @@ namespace Generator if (rawBotsOfSameType.Count == 0) { LoggingHelpers.LogToConsole($"no bots of type {botToUpdate.botType}", ConsoleColor.DarkRed); - break; + continue; } LoggingHelpers.LogToConsole($"Found {rawBotsOfSameType.Count} bots of type: {botToUpdate.botType}"); diff --git a/Generator/BotGearGenerator.cs b/Generator/BotGearGenerator.cs index eb83ab0..a0212de 100644 --- a/Generator/BotGearGenerator.cs +++ b/Generator/BotGearGenerator.cs @@ -33,7 +33,7 @@ namespace Generator if (rawParsedBotOfCurrentType.Count == 0) { - break; + continue; } GearChanceHelpers.CalculateEquipmentChances(botToUpdate, rawParsedBotOfCurrentType); diff --git a/Generator/BotLootGenerator.cs b/Generator/BotLootGenerator.cs index b6f54b4..a27cd14 100644 --- a/Generator/BotLootGenerator.cs +++ b/Generator/BotLootGenerator.cs @@ -33,7 +33,7 @@ namespace Generator if (rawBotsOfSameType.Count == 0) { - break; + continue; } foreach (var rawParsedBot in rawBotsOfSameType)