少年修仙传客户端代码仓库
client_Hale
2018-12-03 e2a539765db9efe9f56d2cb66ad6f6e406af4329
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
3个文件已修改
67 ■■■■ 已修改文件
System/Dungeon/DungeonAssistModel.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/NormalDungeonEntranceWin.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/TrialDungeonEntranceWin.cs 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/DungeonAssistModel.cs
@@ -629,6 +629,12 @@
        public event Action UpdateRedpointEvent;
        public void SetRedpoint()
        {
            if(checkInRedpoint != null)
            {
                checkInRedpoint.state = RedPointState.None;
                checkInRedpoint = null;
            }
            DailyQuestData questData = null;
            dailyQuestModel.TryGetDailyQuest((int)DailyQuestType.DungeonAssist, out questData);
            if(questData != null)
System/Dungeon/NormalDungeonEntranceWin.cs
@@ -245,6 +245,21 @@
        private void ChallengeDungeon()
        {
            switch (model.currentDungeon.mapId)
            {
                case 51010://娲皇遗迹
                    DungeonRecord record;
                    model.TryGetRecord(51010, out record);
                    var entertimes = model.GetEnterTimes(51010);
                    var totalTimes = model.GetTotalTimes(51010);
                    if (entertimes >= totalTimes)
                    {
                        ProcessEnterDungeonError(4);
                        return;
                    }
                    break;
            }
            var error = 0;
            if (model.TestChallange(model.currentDungeon, out error))
            {
System/Dungeon/TrialDungeonEntranceWin.cs
@@ -224,41 +224,36 @@
        private void ChallengeDungeon()
        {
            if (!CheckChallenge()) return;
            if (!CheckChallenge(true))
            {
                return;
            }
            model.SingleChallenge(model.selectedTrialDungeon);
        }
        private void AutoGroupChallenge()
        {
            if (!CheckChallenge()) return;
            if (!CheckChallenge(true))
            {
                return;
            }
            teamModel.RequestAutoMatchTeam(new TeamMission(model.selectedTrialDungeon.mapId, model.selectedTrialDungeon.lineId));
            WindowCenter.Instance.Open<TeamFrameWin>(false, 1);
        }
        private void ChallengeDungeonGroup()
        {
            if (!CheckChallenge()) return;
            if (!CheckChallenge(true))
            {
                return;
            }
            model.GroupChallenge(model.selectedTrialDungeon);
        }
        private bool CheckChallenge()
        private bool CheckChallenge(bool requireTip = false)
        {
            var dongeonId = model.GetDungeonId(model.selectedTrialDungeon);
            var config = Config.Instance.Get<DungeonConfig>(dongeonId);
            var playerLevel = PlayerDatas.Instance.baseData.LV;
            if (playerLevel < config.LVLimitMin)
            {
                //MessageWin.Inst.ShowFixedTip(Language.Get("L1005"));
                return false;
            }
            var jobRank = PlayerDatas.Instance.baseData.ExAttr1;
            if (jobRank < config.JobRankLimit)
            {
                //MessageWin.Inst.ShowFixedTip("转职等级不足");
                return false;
            }
            DungeonRecord dungeonRecord;
            model.TryGetRecord(config.MapID, out dungeonRecord);
@@ -275,7 +270,20 @@
            {
                return false;
            }
            return true;
            var completedTimes = dailyQuestModel.GetDailyQuestCompletedTimes((int)DailyQuestType.Trial);
            var totalTimes = dailyQuestModel.GetDailyQuestTotalTimes((int)DailyQuestType.Trial);
            if (completedTimes >= totalTimes)
            {
                if (requireTip)
                {
                    SysNotifyMgr.Instance.ShowTip("GeRen_chenxin_268121", config.MapID);
                }
                return false;
            }
            var error = 0;
            return model.TestChallange(model.selectedTrialDungeon, out error);
        }
    }