少年修仙传客户端代码仓库
hch
2019-10-08 b3e8490a77883b3e90ebcc8974ba3fecc8da7aed
0312 祈愿次数用完后调整为完成状态
1个文件已修改
13 ■■■■ 已修改文件
System/DailyQuest/DailyQuestModel.cs 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/DailyQuest/DailyQuestModel.cs
@@ -27,6 +27,8 @@
        Redpoint activeValueRedpoint = new Redpoint(EVERYDAY_REDPOINTID, ACTIVEVALUE_REDPOINT);
        public Redpoint LivenessRewardRedPoint = new Redpoint(EVERYDAY_REDPOINTID, LIVENESSREWARD_REDPOINTID);
        PrayerModel modelPray { get { return ModelCenter.Instance.GetModel<PrayerModel>(); } }
        int m_DailyQuestTotalActiveValue = 150;
        public int dailyQuestTotalActiveValue {
            get { return m_DailyQuestTotalActiveValue; }
@@ -206,7 +208,7 @@
            {
                return false;
            }
            switch ((DailyQuestType)id)
            switch ((DailyQuestType) id)
            {
                case DailyQuestType.Prayer:
                case DailyQuestType.Auction:
@@ -1129,7 +1131,14 @@
                    break;
                case DailyQuestType.AllianceBoss:
                    return DailyQuestState.Normal;
            }
                case DailyQuestType.Prayer:
                    if (modelPray.GetAllCoinPrayCnt() == modelPray.coinPrayerCnt && modelPray.GetAllExpPrayCnt() == modelPray.expPrayerCnt)
                    {
                        return DailyQuestState.Completed;
                    }
                    break;
                 }
            var completedTimes = GetDailyQuestCompletedTimes(_dailyQuestId);
            var totalTimes = GetDailyQuestTotalTimes(_dailyQuestId);