Fix issue where loops were being ended too soon
This commit is contained in:
parent
a591b6e21b
commit
d8e216d773
@ -63,7 +63,7 @@ namespace Generator
|
|||||||
if (rawBotsOfSameType.Count == 0)
|
if (rawBotsOfSameType.Count == 0)
|
||||||
{
|
{
|
||||||
LoggingHelpers.LogToConsole($"no bots of type {botToUpdate.botType}", ConsoleColor.DarkRed);
|
LoggingHelpers.LogToConsole($"no bots of type {botToUpdate.botType}", ConsoleColor.DarkRed);
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
LoggingHelpers.LogToConsole($"Found {rawBotsOfSameType.Count} bots of type: {botToUpdate.botType}");
|
LoggingHelpers.LogToConsole($"Found {rawBotsOfSameType.Count} bots of type: {botToUpdate.botType}");
|
||||||
|
@ -33,7 +33,7 @@ namespace Generator
|
|||||||
|
|
||||||
if (rawParsedBotOfCurrentType.Count == 0)
|
if (rawParsedBotOfCurrentType.Count == 0)
|
||||||
{
|
{
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
GearChanceHelpers.CalculateEquipmentChances(botToUpdate, rawParsedBotOfCurrentType);
|
GearChanceHelpers.CalculateEquipmentChances(botToUpdate, rawParsedBotOfCurrentType);
|
||||||
|
@ -33,7 +33,7 @@ namespace Generator
|
|||||||
|
|
||||||
if (rawBotsOfSameType.Count == 0)
|
if (rawBotsOfSameType.Count == 0)
|
||||||
{
|
{
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var rawParsedBot in rawBotsOfSameType)
|
foreach (var rawParsedBot in rawBotsOfSameType)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user