public static bool MeetsCondition(
     QuestCompletedCondition condition,
     Player player,
     Event eventInstance,
     QuestBase questBase
     )
 {
     return(player.QuestCompleted(condition.QuestId));
 }
Example #2
0
        public static bool MeetsCondition(
            QuestCompletedCondition condition,
            Player player,
            Event eventInstance,
            QuestBase questBase
            )
        {
            var questCompleted = QuestBase.Get(condition.QuestId);

            if (questCompleted != null)
            {
                return(player.QuestCompleted(questCompleted));
            }

            return(false);
        }
Example #3
0
 private void SaveFormValues(QuestCompletedCondition condition)
 {
     condition.QuestId = QuestBase.IdFromList(cmbCompletedQuest.SelectedIndex);
 }
Example #4
0
 private void SetupFormValues(QuestCompletedCondition condition)
 {
     cmbCompletedQuest.SelectedIndex = QuestBase.ListIndex(condition.QuestId);
 }