示例#1
0
文件: QuestStep.cs 项目: Mixi59/Stump
 private void OnObjectiveCompleted(QuestObjective obj)
 {
     if (Objectives.All(x => x.Finished))
     {
         FinishQuest();
     }
 }
示例#2
0
 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);
 }