private static string SeekedInGroup(GroupMonster group, Bot bot) { if (group == null) { return(null); } string[] monsters = group.Monsters.Where(entry => IsSeeking(entry.Name.ToLowerInvariant())).Select(entry => entry.Name).ToArray(); if (monsters.Length == 0) { return(null); } return(monsters.FirstOrDefault()); }
private static string SeekedArchiMonsterInGroup(GroupMonster group, Bot bot) { if (group == null) { return(null); } if (!SeekArchiMonster) { return(null); } string[] monsters = group.Monsters.Where(entry => entry.IsArchMonster).Select(entry => entry.Name).ToArray(); if (monsters.Length == 0) { return(null); } return(monsters.Aggregate((a, b) => a + ", " + b)); }