예제 #1
0
        /// <summary>
        /// Removes Quest from Active log and adds it to the finished Quests
        /// </summary>
        public void ArchiveQuest()
        {
            if (!m_Log.m_FinishedQuests.Contains(Template.Id))
            {
                m_Log.m_FinishedQuests.Add(Template.Id);
                Template.NotifyFinished(this);
                int num = Template.IsDaily ? 1 : 0;
            }

            m_Log.RemoveQuest(this);
        }
예제 #2
0
파일: Quest.cs 프로젝트: NecroSharper/WCell
 /// <summary>
 /// Removes Quest from Active log and adds it to the finished Quests
 /// </summary>
 public void ArchiveQuest()
 {
     if (!m_Log.m_FinishedQuests.Contains(Template.Id))
     {
         m_Log.m_FinishedQuests.Add(Template.Id);
         Template.NotifyFinished(this);
         if (Template.IsDaily)
         {
             //TODO Add Daily Quest logic
             //m_CurrentDailyCount++;
         }
     }
     m_Log.RemoveQuest(this);
 }