少年修仙传客户端代码仓库
client_linchunjie
2019-05-17 b479a1178ab4944c9437445d2667dcf5fe93e141
3616 【2.0】专精、灵根界面激活优化
3个文件已修改
24 ■■■■■ 已修改文件
System/Skill/ExpertSkillActiveRemindWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/ExpertSkillSelectWin.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/TreasureSkillModel.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/ExpertSkillActiveRemindWin.cs
@@ -107,6 +107,7 @@
                if (reikiRootModel.freePoint >= point)
                {
                    model.autoActiveSkillId = skillId;
                    reikiRootModel.SendAddPoint(new byte[1] { (byte)requireProperty }, new ushort[1] { (ushort)point });
                }
            }
System/Skill/ExpertSkillSelectWin.cs
@@ -37,7 +37,7 @@
        bool m_OpenDetail = false;
        int m_SelectExpert = 0;
        int selectExpert
        public int selectExpert
        {
            get { return m_SelectExpert; }
            set
System/Skill/TreasureSkillModel.cs
@@ -42,6 +42,8 @@
        public bool selectActivePriority { get; set; }
        public int autoActiveSkillId { get; set; }
        public readonly Redpoint redpoint = new Redpoint(103, 10304);
        public const int REDPOINTID_BASE = 10304000;
        public static int redpointIndex = 100;
@@ -73,6 +75,7 @@
            m_ExpertSkills.Clear();
            m_ExpertActiveLevels.Clear();
            serverInited = false;
            autoActiveSkillId = 0;
        }
        public void OnPlayerLoginOk()
@@ -145,6 +148,24 @@
                        }
                    }
                }
                if (serverInited)
                {
                    var error = 0;
                    if (WindowCenter.Instance.IsOpen<ExpertSkillSelectWin>())
                    {
                        var window = WindowCenter.Instance.Get<ExpertSkillSelectWin>();
                        if (window.selectExpert == autoActiveSkillId
                        && SatisfyActiveExpert(autoActiveSkillId, out error))
                        {
                            var pak = new CA516_tagCMSelectSkillElement();
                            pak.SkillTypeID = (uint)autoActiveSkillId;
                            GameNetSystem.Instance.SendInfo(pak);
                        }
                    }
                }
                autoActiveSkillId = 0;
            }
            else if (dataType == PlayerDataType.LV)
            {