少年修仙传客户端代码仓库
client_Hale
2018-11-09 8ce74d7e414c5805f3225a35d2f94aeeb56e16f9
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
7个文件已修改
161 ■■■■■ 已修改文件
System/Dungeon/MultipleDifficultyDungeonWin.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/NormalDungeonEntranceWin.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PackModelInterface.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Launch/LaunchWin.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Loading/LoadingWin.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/DialogueDuidanceWin.cs 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/TalentModel.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/MultipleDifficultyDungeonWin.cs
@@ -106,7 +106,7 @@
            var error = 0;
            if (TestSweepDungeon(out error))
            {
                WindowCenter.Instance.Open<DungeonSweepWin>();
                model.RequestSweep(model.selectedKylinDungeon);
            }
            else
            {
@@ -126,6 +126,9 @@
                        break;
                    case 4:
                        SysNotifyMgr.Instance.ShowTip("Multiple_Finish");
                        break;
                    case 5:
                        SysNotifyMgr.Instance.ShowTip("SweepFB_1");
                        break;
                }
            }
@@ -206,6 +209,13 @@
            var dungeonConfig = Config.Instance.Get<DungeonConfig>(dungeonId);
            var playerLevel = PlayerDatas.Instance.baseData.LV;
            var dataMapId = model.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
            if (dataMapId == model.selectedKylinDungeon.mapId)
            {
                _error = 5;
                return false;
            }
            if (playerLevel < dungeonConfig.SweepLVLimit)
            {
                _error = 1;
System/Dungeon/NormalDungeonEntranceWin.cs
@@ -220,7 +220,7 @@
            var sweepError = 0;
            if (TestSweepDungeon(out sweepError))
            {
                WindowCenter.Instance.Open<DungeonSweepWin>();
                model.RequestSweep(model.currentDungeon);
            }
            else
            {
@@ -362,6 +362,13 @@
            var playerLevel = PlayerDatas.Instance.baseData.LV;
            var dungeonGrade = model.GetGrade(model.currentDungeon);
            var dataMapId = model.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
            if (dataMapId == model.currentDungeon.mapId)
            {
                _error = 5;
                return false;
            }
            if (dungeonGrade <= 0 && playerLevel < dungeonConfig.SweepLVLimit)
            {
                _error = 1;
@@ -409,6 +416,9 @@
                case 4:
                    SysNotifyMgr.Instance.ShowTip("DungeoninCoolTime");
                    break;
                case 5:
                    SysNotifyMgr.Instance.ShowTip("SweepFB_1");
                    break;
            }
        }
System/KnapSack/Logic/PackModelInterface.cs
@@ -45,8 +45,7 @@
        private int[] pushItemIds;
        public int[] pushBuffTypeIds;
        private List<int> equipBaseAttrlist = new List<int>();
        public int promptUseLvLimit { get; private set;}
        public int[] promptUseIdsLimit { get; private set; }
        public Dictionary<int, int> promptUseLimitDict { get; private set;}
        public override void Init()
        {
@@ -63,9 +62,9 @@
         
            _itemPush = Config.Instance.Get<FuncConfigConfig>("ItemPush");
            preciousItemType = ConfigParse.GetMultipleStr<int>(_itemPush.Numerical1);
            FuncConfigConfig noPromptUsetItem = Config.Instance.Get<FuncConfigConfig>("NoPromptUsetItem");
            promptUseLvLimit = int.Parse(noPromptUsetItem.Numerical2);
            promptUseIdsLimit = ConfigParse.GetMultipleStr<int>(noPromptUsetItem.Numerical1);
            promptUseLimitDict = ConfigParse.GetDic<int, int>(noPromptUsetItem.Numerical1);
            _drugIDFunc = Config.Instance.Get<FuncConfigConfig>("LifePotionlist");
            drugIDs = ConfigParse.GetMultipleStr<int>(_drugIDFunc.Numerical1);
@@ -518,10 +517,10 @@
            }
            if(promptUseIdsLimit.Contains(itemModel.itemId))
            if(promptUseLimitDict.ContainsKey(itemModel.itemId))
            {
                int playerLv = PlayerDatas.Instance.baseData.LV;
                if(playerLv < promptUseLvLimit)
                if(playerLv < promptUseLimitDict[itemModel.itemId])
                {
                    isReach = false;
                    return isReach;
System/Launch/LaunchWin.cs
@@ -37,11 +37,23 @@
        float timer = 0.1f;
        float interval = 0.1f;
        float backGroundTimer = 0f;
        int backGroundIndex = 0;
        List<Sprite> backGrounds = new List<Sprite>();
        #region Built-in
        protected override void BindController()
        {
            var sprite = BuiltInLoader.LoadSprite("Launch");
            m_BackGround.overrideSprite = sprite;
            for (var i = 0; i < 3; i++)
            {
                var sprite = BuiltInLoader.LoadSprite(StringUtility.Contact("Launch_", i + 1));
                if (sprite != null)
                {
                    backGrounds.Add(sprite);
                }
            }
            m_BackGround.overrideSprite = backGrounds[0];
        }
        protected override void AddListeners()
@@ -54,6 +66,8 @@
        protected override void OnPreOpen()
        {
            backGroundTimer = 0f;
            backGroundIndex = 0;
            refProgress = 0f;
            behaviourProgress = 0f;
            trueProgress = 0f;
@@ -160,6 +174,12 @@
                }
            }
            backGroundTimer += Time.deltaTime;
            if (backGroundTimer >= 3f)
            {
                backGroundTimer = 0f;
                m_BackGround.overrideSprite = backGrounds[(++backGroundIndex) % backGrounds.Count];
            }
        }
        private void OpenUserHelp()
System/Loading/LoadingWin.cs
@@ -20,6 +20,7 @@
        [SerializeField] Image m_BackGround;
        [SerializeField] RectTransform m_ContainerFunctions;
        [SerializeField] LoadingFunctionShow[] m_FunctionShows;
        [SerializeField] RectTransform m_ContainerProgress;
        [SerializeField] SmoothSlider m_ProgressSlider;
        [SerializeField] Transform m_EffectPoint;
        [SerializeField] RectTransform m_ContainerMapName;
@@ -101,8 +102,17 @@
                }
            }
            m_ProgressSlider.value = refProgress = 0f;
            StageManager.Instance.loadingProgressEvent += UpdateLoadingProgress;
            if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                m_ContainerProgress.gameObject.SetActive(false);
            }
            else
            {
                m_ContainerProgress.gameObject.SetActive(true);
                m_ProgressSlider.value = refProgress = 0f;
                StageManager.Instance.loadingProgressEvent += UpdateLoadingProgress;
            }
        }
        protected override void OnAfterOpen()
System/MainInterfacePanel/DialogueDuidanceWin.cs
@@ -28,6 +28,7 @@
        [SerializeField] Text m_PlayerNameText;
        [SerializeField] Text m_ContentText;
        [SerializeField] Text m_NextText;
        [SerializeField] List<int> MysteriousTaskID = new List<int>();//新添神秘任务
        Dictionary<int, string> PlayerIcon = new Dictionary<int, string>();
        private int storyMissionsID = 0;//剧情任务ID
@@ -35,6 +36,8 @@
        private int[] sPeaker;//对话对应半身像(0为主角/1为NPC)
        private int nowTaskNum = 0;//获取当前的任务
        private int typesPeaker = -1;
        private float timeType = 0f;
        PlayerTaskDatas m_TaskModel;
        PlayerTaskDatas taskmodel { get { return m_TaskModel ?? (m_TaskModel = ModelCenter.Instance.GetModel<PlayerTaskDatas>()); } }
@@ -70,6 +73,8 @@
        protected override void OnPreOpen()
        {
            MainInterfaceWin.IsOpenMaininterface += IsOpenMaininterface;
            timeType = 0;
            m_NextText.text = string.Format(Language.Get("TaskContinueCount"), AwaitSecond);
            IsCloseWindow();
            typesPeaker = -1;
            storyMissionsID = taskmodel._TaskNow;
@@ -114,35 +119,35 @@
        protected override void OnAfterOpen()
        {
            Treasure treasure = null;
            if (treasureModel.TryGetTreasure(FabaoId, out treasure))
            {
                if (treasure.state != TreasureState.Collecting && !NewBieCenter.Instance.inGuiding)
                {
                    StartCoroutine("GetMainSelfMotion");
                }
            //Treasure treasure = null;
            //if (treasureModel.TryGetTreasure(FabaoId, out treasure))
            //{
            //    if (treasure.state != TreasureState.Collecting && !NewBieCenter.Instance.inGuiding)
            //    {
            //        StartCoroutine("GetMainSelfMotion");
            //    }
            }
            //}
        }
        IEnumerator GetMainSelfMotion()
        {
            if (mainModel.IsSelfMotionTask)
            {
                yield return WaitingForSecondConst.WaitMS1500;
            }
            else
            {
                yield return new WaitForSeconds(AwaitSecond);
            }
            OnClickSKIPButton();
            mainModel.IsSelfMotionTask = true;
            yield break;
        }
        //IEnumerator GetMainSelfMotion()
        //{
        //    if (mainModel.IsSelfMotionTask)
        //    {
        //        yield return WaitingForSecondConst.WaitMS1500;
        //    }
        //    else
        //    {
        //        yield return new WaitForSeconds(AwaitSecond);
        //    }
        //    OnClickSKIPButton();
        //    mainModel.IsSelfMotionTask = true;
        //    yield break;
        //}
        protected override void OnPreClose()
        {
            MainInterfaceWin.IsOpenMaininterface -= IsOpenMaininterface;
            UI3DModelExhibition.Instance.StopShow();
            StopCoroutine("GetMainSelfMotion");
           // StopCoroutine("GetMainSelfMotion");
        }
        private void IsOpenMaininterface()
@@ -169,7 +174,17 @@
        }
        protected override void LateUpdate()
        {
            base.LateUpdate();
            timeType += Time.deltaTime;
            if (timeType >= AwaitSecond)
            {
                m_NextText.text = string.Format(Language.Get("TaskContinueCount"), 0);
                OnClickSKIPButton();
                mainModel.IsSelfMotionTask = true;
            }
            else
            {
                m_NextText.text= string.Format(Language.Get("TaskContinueCount"), AwaitSecond - (int)timeType);
            }
            if (this is BossShowDialogueWin)
            {
@@ -204,6 +219,7 @@
        }
        private void OnClickMarkRay()
        {
            timeType = 0;
            var config = Config.Instance.Get<StoryMissionsConfig>(storyMissionsID);
            if (config == null)
            {
System/Skill/TalentModel.cs
@@ -216,7 +216,7 @@
            return point;
        }
        public int GetSeriesPoint(int talentType,int talentSeries)
        public int GetSeriesPoint(int talentType, int talentSeries)
        {
            var job = PlayerDatas.Instance.baseData.Job;
            List<int> list;
@@ -324,6 +324,13 @@
                }
                UpdateRedpoint();
            }
            else if (refreshType == PlayerDataRefresh.STR
                || refreshType == PlayerDataRefresh.PNE
                || refreshType == PlayerDataRefresh.PHY
                || refreshType == PlayerDataRefresh.CON)
            {
                UpdateRedpoint();
            }
        }
        public void UpdateTalentSkill(int _oldSkillId, int _newSkillId)
@@ -350,6 +357,7 @@
                    }
                }
            }
            UpdateRedpoint();
        }
        public void DeleteTalentSkill(int _skillId)
@@ -368,6 +376,7 @@
                    talentSkillUpdate(config.SkillTypeID);
                }
            }
            UpdateRedpoint();
        }
        #endregion
@@ -380,9 +389,18 @@
            {
                return;
            }
            if (talentPoint > 0)
            if (talentPoint == 0)
            {
                talentRedpoint.state = RedPointState.Simple;
                return;
            }
            var error = 0;
            foreach (var talent in talentSkills.Values)
            {
                if (SatisfyLevelUp(talent.skillId, out error))
                {
                    talentRedpoint.state = RedPointState.Simple;
                    break;
                }
            }
        }
        #endregion