Updated various methods to accept IEnumerable instead of List

This commit is contained in:
Chomp
2025-07-23 10:57:49 +01:00
parent a4c2c80810
commit db34eaa501
17 changed files with 106 additions and 99 deletions
@@ -631,9 +631,9 @@ public class BotGenerator(
/// </summary>
/// <param name="bodyParts">Body parts</param>
/// <returns>Part with the lowest hp</returns>
protected BodyPart? GetLowestHpBodyPart(List<BodyPart> bodyParts)
protected BodyPart? GetLowestHpBodyPart(IEnumerable<BodyPart> bodyParts)
{
if (bodyParts.Count == 0)
if (!bodyParts.Any())
{
return null;
}