private void OnObjectiveCompleted(QuestObjective obj) { if (Objectives.All(x => x.Finished)) { FinishQuest(); } }
public bool Check() { if (Objectives.All(obj => obj.CheckSatisfied())) { Quest.GetQuestByID(ParentId).CompleteStage(); } if (FailConditions != null) { if (FailConditions.All(obj => obj.CheckSatisfied())) { Quest.GetQuestByID(ParentId).FailStage(); } } return(false); }