| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, February 27, 2018 |
| | | // [ Date ]: Saturday, November 10, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | 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[] AttrType;
|
| | | public int[] AttrValue;
|
| | | public int[] SkillID; |
| | | public int NeedExpTotal { get ; private set ; } |
| | | |
| | |
| | | |
| | | NeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | |
| | | AttrType = rawContents[4].Trim(); |
| | | 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]); |
| | | }
|
| | | |
| | | AttrValue = rawContents[5].Trim(); |
| | | 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]; |
| | |
| | | fileFormatVersion: 2 |
| | | guid: def6a8286e488974c9f0fcd086ab87ba |
| | | timeCreated: 1519721891 |
| | | timeCreated: 1541837542 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, October 25, 2018 |
| | | // [ Date ]: Saturday, November 10, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | 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; }
|
| | |
| | |
|
| | | 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]; |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7e4484056094f9b4da70da7a8bb05e3c |
| | | timeCreated: 1540439638 |
| | | licenseType: Pro |
| | | timeCreated: 1541837053 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | |
| | | 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++)
|
| | | {
|
| | |
| | | }
|
| | | 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++)
|
| | |
| | | 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];
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | 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];
|
| | |
| | | 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++)
|
| | |
| | | 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++)
|
| | | {
|
| | |
| | | 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])
|
| | |
| | | }
|
| | | 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];
|
| | |
| | | }
|
| | | 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)
|
| | |
| | | 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;
|
| | |
| | | {
|
| | | 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)))
|
| | | {
|
| | |
| | | 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;
|
| | |
| | | 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++)
|
| | | {
|
| | |
| | | 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++)
|
| | | {
|
| | |
| | | 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))
|
| | |
| | | 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))
|
| | |
| | | }
|
| | | }
|
| | | 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++)
|
| | | {
|
| | |
| | | {
|
| | | 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;
|
| | | }
|
| | | }
|
| | |
| | | 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
|
| | | {
|
| | |
| | | // 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);
|
| | |
| | | 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;
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | 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++)
|
| | |
| | | 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;
|
| | |
| | | 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;
|
| | |
| | | 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)
|
| | |
| | | {
|
| | | 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]))
|
| | |
| | | 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))
|
| | |
| | | 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))
|