public static List<BountyCoroutine> GetActBounties(Act act)
{
IEnumerable<BountyInfo> gameActBounties;
if (act == Act.OpenWorld)
{
gameActBounties = ZetaDia.ActInfo.Bounties.Where(b => b.State != QuestState.Completed).OrderBy(b => b.Act).OrderBy(x => Guid.NewGuid());
}
else
{
gameActBounties = ZetaDia.ActInfo.Bounties.Where(b => b.Act == act && b.State != QuestState.Completed).OrderBy(x => Guid.NewGuid());
}
var actBounties = new List<BountyCoroutine>();
actBounties.AddRange(gameActBounties.Select(GetBounty).Where(bounty => bounty != null).OrderBy(x => Guid.NewGuid()));
return actBounties;
}