少年修仙传客户端代码仓库
client_Zxw
2018-11-10 61ab2b473f39056eb74c54cfeac6e0a5e751e83a
3335 代码优化
15个文件已修改
257 ■■■■ 已修改文件
Core/GameEngine/Model/Config/HorseUpConfig.cs 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/HorseUpConfig.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/PetInfoConfig.cs 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/PetInfoConfig.cs.meta 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Mount/MountPanelAssignment.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Mount/PlayerMountDatas.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/PetAttributeMethods.cs 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/PetAttributeWin.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/PlayerPetDatas.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/RidingAndPetActivationModel.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/RidingAndPetActivationWin.cs 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Pet/TargetPetAttrWin.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/RoleParticulars/RoleParticularModel.cs 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/HorseUpConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Tuesday, February 27, 2018
//    [  Date ]:           Saturday, November 10, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -11,13 +11,13 @@
    
    public partial class HorseUpConfig : ConfigBase {
        public int ID { get ; private set ; }
        public int HorseID { get ; private set ; }
        public int LV { get ; private set ; }
        public int NeedExp { get ; private set ; }
        public string AttrType { get ; private set; }
        public string AttrValue { get ; private set; }
        public int[] SkillID;
        public int ID { get ; private set ; }
        public int HorseID { get ; private set ; }
        public int LV { get ; private set ; }
        public int NeedExp { get ; private set ; }
        public int[] AttrType;
        public int[] AttrValue;
        public int[] SkillID;
        public int NeedExpTotal { get ; private set ; }
        public override string getKey()
@@ -28,25 +28,35 @@
        public override void Parse() {
            try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
                HorseID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
                LV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
                NeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
                AttrType = rawContents[4].Trim();
                AttrValue = rawContents[5].Trim();
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
                HorseID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
                LV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
                NeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
                string[] AttrTypeStringArray = rawContents[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                AttrType = new int[AttrTypeStringArray.Length];
                for (int i=0;i<AttrTypeStringArray.Length;i++)
                {
                     int.TryParse(AttrTypeStringArray[i],out AttrType[i]);
                }
                string[] AttrValueStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                AttrValue = new int[AttrValueStringArray.Length];
                for (int i=0;i<AttrValueStringArray.Length;i++)
                {
                     int.TryParse(AttrValueStringArray[i],out AttrValue[i]);
                }
                string[] SkillIDStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                SkillID = new int[SkillIDStringArray.Length];
                for (int i=0;i<SkillIDStringArray.Length;i++)
                {
                     int.TryParse(SkillIDStringArray[i],out SkillID[i]);
                }
                }
                NeedExpTotal=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; 
            }
            catch (Exception ex)
Core/GameEngine/Model/Config/HorseUpConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: def6a8286e488974c9f0fcd086ab87ba
timeCreated: 1519721891
timeCreated: 1541837542
licenseType: Free
MonoImporter:
  serializedVersion: 2
Core/GameEngine/Model/Config/PetInfoConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Thursday, October 25, 2018
//    [  Date ]:           Saturday, November 10, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -20,9 +20,9 @@
        public int InitRank { get ; private set ; }
        public int MaxRank { get ; private set ; }
        public int UseNeedRank { get ; private set ; }
        public string SkillID { get ; private set; }
        public string SkillScore { get ; private set; }
        public string SkillUnLock { get ; private set; }
        public int[] SkillID;
        public int[] SkillScore;
        public int[] SkillUnLock;
        public int[] ShowSkill;
        public string IconKey { get ; private set; } 
        public string InitFightPower { get ; private set; } 
@@ -56,11 +56,26 @@
            
                UseNeedRank=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; 
            
                SkillID = rawContents[9].Trim();
                string[] SkillIDStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                SkillID = new int[SkillIDStringArray.Length];
                for (int i=0;i<SkillIDStringArray.Length;i++)
                {
                     int.TryParse(SkillIDStringArray[i],out SkillID[i]);
                }
            
                SkillScore = rawContents[10].Trim();
                string[] SkillScoreStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                SkillScore = new int[SkillScoreStringArray.Length];
                for (int i=0;i<SkillScoreStringArray.Length;i++)
                {
                     int.TryParse(SkillScoreStringArray[i],out SkillScore[i]);
                }
            
                SkillUnLock = rawContents[11].Trim();
                string[] SkillUnLockStringArray = rawContents[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                SkillUnLock = new int[SkillUnLockStringArray.Length];
                for (int i=0;i<SkillUnLockStringArray.Length;i++)
                {
                     int.TryParse(SkillUnLockStringArray[i],out SkillUnLock[i]);
                }
            
                string[] ShowSkillStringArray = rawContents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                ShowSkill = new int[ShowSkillStringArray.Length];
Core/GameEngine/Model/Config/PetInfoConfig.cs.meta
@@ -1,7 +1,7 @@
fileFormatVersion: 2
guid: 7e4484056094f9b4da70da7a8bb05e3c
timeCreated: 1540439638
licenseType: Pro
timeCreated: 1541837053
licenseType: Free
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs
@@ -25,8 +25,8 @@
                list = new List<PetSkillLimit>();
                petSkillDict.Add(ID, list);
            }
            var skills = ConfigParse.GetMultipleStr<int>(SkillID);
            var skillUnlocks = ConfigParse.GetMultipleStr<int>(SkillUnLock);
            var skills = SkillID;
            var skillUnlocks = SkillUnLock;
            for (int i = 0; i < skills.Length; i++)
            {
System/KnapSack/Logic/ItemTipsModel.cs
@@ -369,8 +369,8 @@
                }
                Dictionary<int, int> skillDict = new Dictionary<int, int>();
                petSkillDict.Add(petInfolist[i].ID,skillDict);
                int[] skillIds = ConfigParse.GetMultipleStr<int>(petInfolist[i].SkillID);
                int[] skillUnlocks = ConfigParse.GetMultipleStr<int>(petInfolist[i].SkillUnLock);
                int[] skillIds = petInfolist[i].SkillID;
                int[] skillUnlocks = petInfolist[i].SkillUnLock;
                if(skillIds != null)
                {
                    for (int j = 0; j < skillIds.Length; j++)
System/Mount/MountPanelAssignment.cs
@@ -234,14 +234,14 @@
                foreach (int key in mountModel._DicHorse.Keys)
                {
                    HorseUpConfig tagMode = HorseUpConfig.GetHorseIDAndLV(key, mountModel._DicHorse[key].Lv);
                    string[] str = ConfigParse.GetMultipleStr(tagMode.AttrValue);
                    if (str.Length != 0)
                    int[] intAttrValue = tagMode.AttrValue;
                    if (intAttrValue.Length != 0)
                    {
                        _HPP += int.Parse(str[0]);
                        _AttT += int.Parse(str[1]);
                        if (int.Parse(str[2]) > _SpeE)
                        _HPP += intAttrValue[0];
                        _AttT += intAttrValue[1];
                        if (intAttrValue[2] > _SpeE)
                        {
                            _SpeE = int.Parse(str[2]);
                            _SpeE = intAttrValue[2];
                        }
                    }
                }
System/Mount/PlayerMountDatas.cs
@@ -482,10 +482,10 @@
            foreach (int key in _DicHorse.Keys)
            {
                HorseUpConfig tagMode = HorseUpConfig.GetHorseIDAndLV(key, _DicHorse[key].Lv);
                string[] str = ConfigParse.GetMultipleStr(tagMode.AttrValue);
                if (str.Length != 0)
                int[] intAttrValue = tagMode.AttrValue;
                if (intAttrValue.Length != 0)
                {
                    _AttT += int.Parse(str[1]);
                    _AttT += intAttrValue[1];
                }
            }
            return _AttT + dicStone[7];
@@ -624,8 +624,8 @@
        HorseUpConfig cost = HorseUpConfig.GetHorseIDAndLV(mountCode, maxRank);
        if (cost != null)
        {
            int[] attrIds = ConfigParse.GetMultipleStr<int>(cost.AttrType);
            int[] attrValues = ConfigParse.GetMultipleStr<int>(cost.AttrValue);
            int[] attrIds = cost.AttrType;
            int[] attrValues = cost.AttrValue;
            if (attrIds != null)
            {
                for (int j = 0; j < attrIds.Length; j++)
System/Pet/PetAttributeMethods.cs
@@ -165,8 +165,8 @@
            curPetUnlocks = null;
            if (petInfoConfig == null) return;
            curPetSkillIds = ConfigParse.GetMultipleStr<int>(petInfoConfig.SkillID);
            curPetUnlocks = ConfigParse.GetMultipleStr<int>(petInfoConfig.SkillUnLock);
            curPetSkillIds = petInfoConfig.SkillID;
            curPetUnlocks = petInfoConfig.SkillUnLock;
            curPetSkillCtrl.Refresh();
            for (int i = 0; i < Skillimage.Count; i++)
            {
@@ -191,7 +191,7 @@
            if (petmodel.ListEffectSkill.Contains(curPetSkillIds[skillIdIndex]))
            {
                uie.Play();
            }
            if (petmodel._DicPetBack.ContainsKey(petInfoConfig.ID))
            {
@@ -226,14 +226,14 @@
            {
                list = Config.Instance.GetAllValues<PetInfoConfig>();
            }
           // List<PetInfoConfig> list = Config.Instance.GetAllValues<PetInfoConfig>();
            // List<PetInfoConfig> list = Config.Instance.GetAllValues<PetInfoConfig>();
            for (int i = 0; i < list.Count; i++)
            {
                if (petmodel._DicPetBack.ContainsKey(list[i].ID))
                {
                    PetBackpack _PetBackpack = petmodel._DicPetBack[list[i].ID];
                    int[] ids = ConfigParse.GetMultipleStr<int>(list[i].SkillID);
                    int[] unlocks = ConfigParse.GetMultipleStr<int>(list[i].SkillUnLock);
                    int[] ids = list[i].SkillID;
                    int[] unlocks = list[i].SkillUnLock;
                    for (int j = 0; j < ids.Length; j++)
                    {
                        if (_PetBackpack.PetClass >= unlocks[j])
@@ -247,8 +247,8 @@
            }
            for (int i = 0; i < list.Count; i++)
            {
                int[] ids = ConfigParse.GetMultipleStr<int>(list[i].SkillID);
                int[] unlocks = ConfigParse.GetMultipleStr<int>(list[i].SkillUnLock);
                int[] ids = list[i].SkillID;
                int[] unlocks = list[i].SkillUnLock;
                if (petmodel._DicPetBack.ContainsKey(list[i].ID))
                {
                    PetBackpack _PetBackpack = petmodel._DicPetBack[list[i].ID];
@@ -305,14 +305,14 @@
                SkillButtonPet skillButton = cell.transform.GetChild(i).GetComponent<SkillButtonPet>();
                FunctionUnlockFlyObjectTarget functionUnlockFlyObjectTarget = cell.transform.GetChild(i).GetComponent<FunctionUnlockFlyObjectTarget>();
                int petId = 0;
               // List<PetInfoConfig> list = Config.Instance.GetAllValues<PetInfoConfig>();
                // List<PetInfoConfig> list = Config.Instance.GetAllValues<PetInfoConfig>();
                if (list.Count <= 0)
                {
                    list = Config.Instance.GetAllValues<PetInfoConfig>();
                }
                for (int j = 0; j < list.Count; j++)
                {
                    int[] ids = ConfigParse.GetMultipleStr<int>(list[j].SkillID);
                    int[] ids = list[j].SkillID;
                    for (int k = 0; k < ids.Length; k++)
                    {
                        if (cellCnt <= petSkillIdlist.Count)
@@ -366,7 +366,7 @@
                    PetClassCostConfig _tagPetClass = PetClassCostConfig.GetPetIdAndRank(key, petmodel._DicPetBack[key].PetClass);
                    _MaxNumber += _tagPetClass.AtkAdd;
                }
                allAttackText.text =((int)(_MaxNumber + ridingModel.GetAllPetAddAttack())).ToString();
                allAttackText.text = ((int)(_MaxNumber + ridingModel.GetAllPetAddAttack())).ToString();
                int sumFight = 0;
                int InitFightPower = 0;
                foreach (var petId in petmodel._DicPetBack.Keys)
@@ -375,14 +375,14 @@
                    int _scoreNumAll = 0;
                    PetInfoConfig config = Config.Instance.Get<PetInfoConfig>(petId);
                    InitFightPower += int.Parse(config.InitFightPower);
                    string[] strNumberSkill = config.SkillID.Split('|');
                    string[] strSkillUnLock = config.SkillUnLock.Split('|');
                    int[] strNumberSkill = config.SkillID;
                    int[] strSkillUnLock = config.SkillUnLock;
                    PetClassCostConfig _tagPetClass = PetClassCostConfig.GetPetIdAndRank(petId, petmodel._DicPetBack[petId].PetClass);
                    for (int i = 0; i < strSkillUnLock.Length; i++)
                    {
                        if (petmodel._DicPetBack[petId].PetClass >= int.Parse(strSkillUnLock[i]))
                        if (petmodel._DicPetBack[petId].PetClass >= strSkillUnLock[i])
                        {
                            SkillConfig skillconfig = Config.Instance.Get<SkillConfig>(int.Parse(strNumberSkill[i]));
                            SkillConfig skillconfig = Config.Instance.Get<SkillConfig>(strNumberSkill[i]);
                            if (skillconfig != null)
                            {
                                _scoreNum += skillconfig.FightPower;
System/Pet/PetAttributeWin.cs
@@ -115,15 +115,15 @@
            {
                PetSkillLv.Clear();
                PetSkill.Clear();
                string[] petSkillLvStrList = ConfigParse.GetMultipleStr(petInfo.SkillUnLock);
                string[] petSkillStrList = ConfigParse.GetMultipleStr(petInfo.SkillID);
                int[] petSkillLvStrList = petInfo.SkillUnLock;
                int[] petSkillStrList = petInfo.SkillID;
                for (int i = 0; i < petSkillLvStrList.Length; i++)
                {
                    PetSkillLv.Add(int.Parse(petSkillLvStrList[i]));
                    PetSkillLv.Add(petSkillLvStrList[i]);
                }
                for (int i = 0; i < petSkillStrList.Length; i++)
                {
                    PetSkill.Add(int.Parse(petSkillStrList[i]));
                    PetSkill.Add(petSkillStrList[i]);
                }
                if (petmodel._DicPetBack[TypePetID].PetClass > PetLv && PetSkillLv.Contains((petmodel._DicPetBack[TypePetID].PetClass)))
                {
System/Pet/PlayerPetDatas.cs
@@ -390,7 +390,7 @@
        PetInfoConfig petInfo = Config.Instance.Get<PetInfoConfig>(PetID);
        if (petInfo != null)
        {
            curPetUnlocks = ConfigParse.GetMultipleStr<int>(petInfo.SkillUnLock);
            curPetUnlocks = petInfo.SkillUnLock;
            maxskillLV = curPetUnlocks[(curPetUnlocks.Length) - 1];
        }
        return maxskillLV;
System/Pet/RidingAndPetActivationModel.cs
@@ -137,8 +137,8 @@
            if (petmodel._DicPetBack.ContainsKey(PetID))
            {
                PetInfoConfig petInfo = Config.Instance.Get<PetInfoConfig>(PetID);
                int[] ids = ConfigParse.GetMultipleStr<int>(petInfo.SkillID);
                int[] unlocks = ConfigParse.GetMultipleStr<int>(petInfo.SkillUnLock);
                int[] ids = petInfo.SkillID;
                int[] unlocks = petInfo.SkillUnLock;
                float attackAdd = 0f;
                for (int i = 0; i < unlocks.Length; i++)
                {
@@ -203,8 +203,8 @@
            if (petmodel._DicPetBack.ContainsKey(PetID))
            {
                PetInfoConfig petInfo = Config.Instance.Get<PetInfoConfig>(PetID);
                int[] ids = ConfigParse.GetMultipleStr<int>(petInfo.SkillID);
                int[] unlocks = ConfigParse.GetMultipleStr<int>(petInfo.SkillUnLock);
                int[] ids = petInfo.SkillID;
                int[] unlocks = petInfo.SkillUnLock;
                float LifeAdd = 0f;
                for (int i = 0; i < unlocks.Length; i++)
                {
@@ -288,8 +288,8 @@
            if (mountModel._DicHorse.ContainsKey(mountID))
            {
                HorseUpConfig tagMode = HorseUpConfig.GetHorseIDAndLV(mountID, mountModel._DicHorse[mountID].Lv);
                int[] attrType = ConfigParse.GetMultipleStr<int>(tagMode.AttrType);
                int[] attrValue = ConfigParse.GetMultipleStr<int>(tagMode.AttrValue);
                int[] attrType = tagMode.AttrType;
                int[] attrValue = tagMode.AttrValue;
                for (int i = 0; i < attrType.Length; i++)
                {
                    if (attrType[i] == ValueKey && DicSkill.ContainsKey(ValueKey))
@@ -408,8 +408,8 @@
                    if (horseConfig.Quality == Quality)
                    {
                        HorseUpConfig tagMode = HorseUpConfig.GetHorseIDAndLV(key, mountModel._DicHorse[key].Lv);
                        int[] attrType = ConfigParse.GetMultipleStr<int>(tagMode.AttrType);
                        int[] attrValue = ConfigParse.GetMultipleStr<int>(tagMode.AttrValue);
                        int[] attrType = tagMode.AttrType;
                        int[] attrValue =tagMode.AttrValue;
                        for (int i = 0; i < attrType.Length; i++)
                        {
                            if (attrType[i] == ValueKey && DicSkill.ContainsKey(ValueKey))
System/Pet/RidingAndPetActivationWin.cs
@@ -178,8 +178,8 @@
                }
            }
            HorseUpConfig tagMode = HorseUpConfig.GetHorseIDAndLV(ActivateID, 1);
            string[] strListType = ConfigParse.GetMultipleStr(tagMode.AttrType);
            string[] strListValue = ConfigParse.GetMultipleStr(tagMode.AttrValue);
            int[] strListType = tagMode.AttrType;
            int[] strListValue = tagMode.AttrValue;
            FightDic.Clear();
            for (int i = 0; i < m_CharacterPalette.childCount; i++)
            {
@@ -187,18 +187,18 @@
                {
                    m_CharacterPalette.GetChild(i).gameObject.SetActive(true);
                    PropertiesDirectory propertiesDirector = m_CharacterPalette.GetChild(i).GetComponent<PropertiesDirectory>();
                    switch (int.Parse(strListType[i]))
                    switch (strListType[i])
                    {
                        case 6:
                            FightDic.Add(6, int.Parse(strListValue[i]));
                            propertiesDirector.AssignValueType1(Language.Get("Hit_Z"), strListValue[i]);
                            FightDic.Add(6, strListValue[i]);
                            propertiesDirector.AssignValueType1(Language.Get("Hit_Z"), strListValue[i].ToString());
                            break;
                        case 7:
                            FightDic.Add(7, int.Parse(strListValue[i]));
                            propertiesDirector.AssignValueType1(Language.Get("AttackPower_Z"), strListValue[i]);
                            FightDic.Add(7, strListValue[i]);
                            propertiesDirector.AssignValueType1(Language.Get("AttackPower_Z"), strListValue[i].ToString());
                            break;
                        case 23:
                            propertiesDirector.AssignValueType1(Language.Get("MovingSpeed_Z"), strListValue[i]);
                            propertiesDirector.AssignValueType1(Language.Get("MovingSpeed_Z"), strListValue[i].ToString());
                            break;
                    }
                }
@@ -270,17 +270,15 @@
            UI3DModelExhibition.Instance.ShowNPC(ActivateID, npcConfig.UIModeLOffset, npcConfig.UIModelRotation, m_RawImagePet);
            PetInfoConfig petInfoConfig = Config.Instance.Get<PetInfoConfig>(ActivateID);
            int InitFightPower = int.Parse(petInfoConfig.InitFightPower);
            string StrPetSkill = petInfoConfig.SkillID;
            string[] strListSkills = ConfigParse.GetMultipleStr(StrPetSkill);
            string StrPetSkillLv = petInfoConfig.SkillUnLock;
            string[] strListSkillLv = ConfigParse.GetMultipleStr(StrPetSkillLv);
            int[] strListSkills = petInfoConfig.SkillID;
            int[] strListSkillLv = petInfoConfig.SkillUnLock;
            for (int i = 0; i < m_SkillGroup.childCount; i++)
            {
                if (i < strListSkills.Length)
                {
                    m_SkillGroup.GetChild(i).gameObject.SetActive(true);
                    SkillButtonPet mountSkill = m_SkillGroup.GetChild(i).gameObject.GetComponent<SkillButtonPet>();
                    mountSkill.SetModel(int.Parse(strListSkills[i]), int.Parse(strListSkillLv[i]), true, ActivateID, SkillType.PetSkill);
                    mountSkill.SetModel(strListSkills[i], strListSkillLv[i], true, ActivateID, SkillType.PetSkill);
                }
                else
                {
@@ -321,10 +319,8 @@
            // StartCoroutine("FrameDelay");
            PetInfoConfig petInfoConfig = Config.Instance.Get<PetInfoConfig>(ActivateID);
            int InitFightPower = int.Parse(petInfoConfig.InitFightPower);
            string StrPetSkill = petInfoConfig.SkillID;
            string[] strListSkills = ConfigParse.GetMultipleStr(StrPetSkill);
            string StrPetSkillLv = petInfoConfig.SkillUnLock;
            string[] strListSkillLv = ConfigParse.GetMultipleStr(StrPetSkillLv);
            int[] strListSkills = petInfoConfig.SkillID;
            int[] strListSkillLv = petInfoConfig.SkillUnLock;
            m_SkillBtn1.SetModel(SkillID, lv, true, ActivateID, SkillType.PetSkill);
            m_PropertiesDirectory.AssignValueType2(Language.Get("Class_Z"), (lv - 1).ToString(), lv.ToString());
            SkillConfig skillcon = Config.Instance.Get<SkillConfig>(SkillID);
@@ -334,9 +330,9 @@
            int fightNumber = 0;
            for (int j = 0; j < strListSkillLv.Length; j++)
            {
                if (lv >= int.Parse(strListSkillLv[j]))
                if (lv >= strListSkillLv[j])
                {
                    SkillConfig skillconfig = Config.Instance.Get<SkillConfig>(int.Parse(strListSkills[j]));
                    SkillConfig skillconfig = Config.Instance.Get<SkillConfig>(strListSkills[j]);
                    fightNumber += skillconfig.FightPower;
                }
            }
System/Pet/TargetPetAttrWin.cs
@@ -117,8 +117,8 @@
            PetInfoConfig config = Config.Instance.Get<PetInfoConfig>(petmodel.curPetId);
            
            int[] strNumberSkill = ConfigParse.GetMultipleStr<int>(config.SkillID);
            int[] strSkillUnLock = ConfigParse.GetMultipleStr<int>(config.SkillUnLock);
            int[] strNumberSkill = config.SkillID;
            int[] strSkillUnLock = config.SkillUnLock;
            int _scoreNum = 0;
            int _scoreNumAll = 0;
            for (int i = 0; i < strSkillUnLock.Length; i++)
@@ -189,16 +189,16 @@
            HorseUpConfig horseUpconfig = HorseUpConfig.GetHorseIDAndLV(ID, mountModel._DicHorse[ID].Lv);
            m_Property_Text.text = Language.Get("MountAttributes_Z");
            m_LVtextP.text = mountModel._DicHorse[ID].Lv + Language.Get("Z1041");
            string[] strAttrValue = ConfigParse.GetMultipleStr(horseUpconfig.AttrValue);
            int[] strAttrValue = horseUpconfig.AttrValue;
            Dictionary<int, int> AddPowerDic = new Dictionary<int, int>();
            AddPowerDic.Clear();
            if (strAttrValue.Length != 0)
            {
                curMountLifeText.text = strAttrValue[0];//生命
                curMountAttackText.text = strAttrValue[1];//攻击
                curMountSpeedText.text = strAttrValue[2];//速度
                AddPowerDic.Add(6, int.Parse(strAttrValue[0]));
                AddPowerDic.Add(7, int.Parse(strAttrValue[1]));
                curMountLifeText.text = strAttrValue[0].ToString();//生命
                curMountAttackText.text = strAttrValue[1].ToString();//攻击
                curMountSpeedText.text = strAttrValue[2].ToString();//速度
                AddPowerDic.Add(6, strAttrValue[0]);
                AddPowerDic.Add(7, strAttrValue[1]);
            }
            int _scoreNum = 0;
            int _scoreNumAll = 0;
@@ -234,16 +234,16 @@
                curMountSpeedText1.transform.parent.gameObject.SetActive(true);
                m_LVtextP1.text = (mountModel._DicHorse[ID].Lv+1) + Language.Get("Z1041");
                HorseUpConfig horseUpconfigNext = HorseUpConfig.GetHorseIDAndLV(ID, mountModel._DicHorse[ID].Lv + 1);
                string[] strAttrValueNext = ConfigParse.GetMultipleStr(horseUpconfigNext.AttrValue);
                int[] strAttrValueNext = horseUpconfigNext.AttrValue;
                Dictionary<int, int> AddPowerDic1 = new Dictionary<int, int>();
                AddPowerDic1.Clear();
                if (strAttrValueNext.Length != 0)
                {
                    curMountLifeText1.text = strAttrValueNext[0];//生命
                    curMountAttackText1.text = strAttrValueNext[1];//攻击
                    curMountSpeedText1.text = strAttrValueNext[2];//速度
                    AddPowerDic1.Add(6, int.Parse(strAttrValueNext[0]));
                    AddPowerDic1.Add(7, int.Parse(strAttrValueNext[1]));
                    curMountLifeText1.text = strAttrValueNext[0].ToString();//生命
                    curMountAttackText1.text = strAttrValueNext[1].ToString();//攻击
                    curMountSpeedText1.text = strAttrValueNext[2].ToString();//速度
                    AddPowerDic1.Add(6, strAttrValueNext[0]);
                    AddPowerDic1.Add(7, strAttrValueNext[1]);
                }
                int _scoreNum1 = 0;
                int _scoreNumAll1 = 0;
System/RoleParticulars/RoleParticularModel.cs
@@ -8,7 +8,7 @@
namespace Snxxz.UI
{
    [XLua.LuaCallCSharp]
    public class RoleParticularModel : Model
    public class RoleParticularModel : Model
    {
        public override void Init()
@@ -161,8 +161,8 @@
            var fightPower = GetHorseSkillFightPower(_id, lv);
            var horseUpConfig = HorseUpConfig.GetHorseIDAndLV(_id, lv);
            Dictionary<int, int> dict = new Dictionary<int, int>();
            var propertys = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrType);
            var values = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrValue);
            int[] propertys = horseUpConfig.AttrType;
            int[] values = horseUpConfig.AttrValue;
            for (int i = 0; i < propertys.Length; i++)
            {
                if (propertys[i] == (int)AttrEnum.ATK || propertys[i] == (int)AttrEnum.HP)
@@ -256,8 +256,8 @@
            {
                HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horses[i].id, horses[i].lv);
                GetHorseProperty(horses[i].id, horses[i].lv, ref propertyDict);
                var propertys = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrType);
                var values = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrValue);
                int[] propertys = horseUpConfig.AttrType;
                int[] values = horseUpConfig.AttrValue;
                for (int k = 0; k < propertys.Length; k++)
                {
                    if (!propertyDict.ContainsKey(propertys[k]))
@@ -433,8 +433,8 @@
                     return x.id == condition;
                 });
                HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horseInfo.id, horseInfo.lv);
                int[] propertys = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrType);
                int[] values = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrValue);
                int[] propertys = horseUpConfig.AttrType;
                int[] values = horseUpConfig.AttrValue;
                for (int k = 0; k < propertys.Length; k++)
                {
                    if (propertys[k] == property && dict.ContainsKey(property))
@@ -451,8 +451,8 @@
                    if (horseConfig.Quality == condition)
                    {
                        HorseUpConfig horseUpConfig = HorseUpConfig.GetHorseIDAndLV(horses[i].id, horses[i].lv);
                        int[] propertys = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrType);
                        int[] values = ConfigParse.GetMultipleStr<int>(horseUpConfig.AttrValue);
                        int[] propertys = horseUpConfig.AttrType;
                        int[] values = horseUpConfig.AttrValue;
                        for (int k = 0; k < propertys.Length; k++)
                        {
                            if (propertys[k] == property && dict.ContainsKey(property))
@@ -1103,7 +1103,7 @@
                return -config_x.Sort.CompareTo(config_y.Sort);
            }
            int Compare(HorseInfo x,HorseInfo y)
            int Compare(HorseInfo x, HorseInfo y)
            {
                var config_x = Config.Instance.Get<HorseConfig>(x.id);
                var config_y = Config.Instance.Get<HorseConfig>(y.id);