public override void OnStart() { //AdvDia.Update(true); if (!ValidActs.Contains(Act)) { Logger.Error("[RunActBounties] Invalid act, valid acts are {0}", string.Join(", ", ValidActs)); _isDone = true; } _bounties = BountyCoroutineFactory.GetActBounties(Act).OrderBy(a => a.QuestData.Act).ThenBy(a => a.QuestData.InternalName).ToList(); _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(Act); }
private async Task <bool> TurningInTheActQuest() { if (!await _completeActBountiesCoroutine.GetCoroutine()) { return(false); } if (BountyHelpers.IsActTurninCompleted(Act)) { State = States.Completed; } else { _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(Act); } return(false); }
public ActBountiesCoroutine(Act act) { Act = act; _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(act); _bountyCoroutines = BountyCoroutineFactory.GetActBounties(act); }
private async Task<bool> TurningInTheActQuest() { if (!await _completeActBountiesCoroutine.GetCoroutine()) return false; if (BountyHelpers.IsActTurninCompleted(Act)) { State = States.Completed; } else { _completeActBountiesCoroutine = new CompleteActBountiesCoroutine(Act); } return false; }