public string GetLastWill() { return(RoleSlots .Where(rs => rs.Team == Team.Town && !(rs.IsTemporary && rs.Player == null)) .Select(rs => rs.LastWillLine) .Aggregate((i, j) => i + "\r\n" + j) + Environment.NewLine + Players.GetLastWill()); }
private List <Player> GetOverclaimPlayers(Role role) => RoleSlots.Where(rs => rs.Player != null && !rs.Player.IsConfirmed && rs.CanHold(role.Group.Name)).Select(rs => rs.Player).ToList();