少年修仙传客户端代码仓库
client_Zxw
2018-08-18 93b933f66334aa44657d1bf6d1154e5ea3a1ee51
单号【2632】新增骑宠技能特效表现
4个文件已修改
48 ■■■■■ 已修改文件
System/Mount/MountPanelAssignment.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Mount/PlayerMountDatas.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/PetAttributeMethods.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/PlayerPetDatas.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Mount/MountPanelAssignment.cs
@@ -447,6 +447,22 @@
                        Skillimage[i].SetActive(true);
                    }
                    GroupSkill.GetChild(i).gameObject.SetActive(true);
                    UIEffect uie = GroupSkill.GetChild(i).GetComponent<UIEffect>();
                    if (mountModel.ListEffectSkill.Contains(MountSkills[i].SkillID))
                    {
                        if (!uie.IsPlaying)
                        {
                            uie.Play();
                        }
                    }
                    else
                    {
                        if (uie.IsPlaying)
                        {
                            uie.Stop();
                        }
                    }
                    SkillButtonPet mountSkill = GroupSkill.GetChild(i).gameObject.GetComponent<SkillButtonPet>();
                    int curMountLv = 0;
                    if (mountModel._DicHorse.ContainsKey(MountSkills[i].HorseID))
System/Mount/PlayerMountDatas.cs
@@ -51,6 +51,7 @@
    public int MountStoneItemId = 0;
    public bool IsOk = false;
    public bool IsRedPointSingleFeed = true;
    public  List<int> ListEffectSkill = new List<int>();
    PlayerPackModel _playerPack;
    PlayerPackModel playerPack
    {
@@ -67,6 +68,13 @@
        MountWin.RedPointMountDan += RedPointMountDan;
        MountSkillAndItem();
        MountNumberPreservation();
        string str = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("MountSkillEffect").Numerical1;
        int[] listeffect = ConfigParse.GetMultipleStr<int>(str);
        ListEffectSkill.Clear();
        for (int i = 0; i < listeffect.Length; i++)
        {
            ListEffectSkill.Add(listeffect[i]);
        }
    }
    public override void UnInit()
System/Pet/PetAttributeMethods.cs
@@ -187,6 +187,21 @@
        {
            int skillIdIndex = cell.index;
            SkillButtonPet skillButton = cell.transform.GetComponent<SkillButtonPet>();
            UIEffect uie = cell.transform.GetComponent<UIEffect>();
            if (petmodel.ListEffectSkill.Contains(curPetSkillIds[skillIdIndex]))
            {
                if (!uie.IsPlaying)
                {
                    uie.Play();
                }
            }
            else
            {
                if (uie.IsPlaying)
                {
                    uie.Stop();
                }
            }
            if (petmodel._DicPetBack.ContainsKey(petInfoConfig.ID))
            {
                PetBackpack _PetBackpack = petmodel._DicPetBack[petInfoConfig.ID];
System/Pet/PlayerPetDatas.cs
@@ -48,6 +48,8 @@
    public bool IsOk = false;
    public bool RedPointMaxLv = true;//用来标记灵宠最大限制等级
    public List<int> ListEffectSkill = new List<int>();
    PlayerPackModel _playerPack;
    PlayerPackModel playerPack
    {
@@ -86,6 +88,13 @@
        }
        petUpgradeToolId = int.Parse(ConfigManager.Instance.GetTemplate<FuncConfigConfig>("PetUpItem").Numerical1);
        string str = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("PetSkillEffect").Numerical1;
        int[] listeffect = ConfigParse.GetMultipleStr<int>(str);
        ListEffectSkill.Clear();
        for (int i = 0; i < listeffect.Length; i++)
        {
            ListEffectSkill.Add(listeffect[i]);
        }
    }
    public override void UnInit()