| | |
| | | keys.Sort(); |
| | | //满级 和下级属性 |
| | | var nextConfig = HorseClassConfig.Get(HorseManager.Instance.classLV + 1); |
| | | var nextAttr = state == 1 ? nextConfig.ClassAttrValueList : (state == 0 ? config.PerLVAttrValueList : new int[config.AttrIDList.Length]); |
| | | for (int i = 0; i < attrNameTexts.Length; i++) |
| | | { |
| | | if (i < keys.Count) |
| | | { |
| | | attrNameTexts[i].text = PlayerPropertyConfig.Get(keys[i]).Name; |
| | | attrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], HorseManager.Instance.attrDic[keys[i]]); |
| | | nextAttrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], nextAttr[i]); |
| | | var curValue = HorseManager.Instance.attrDic[keys[i]]; |
| | | attrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], curValue, 2); |
| | | var addValue = 0; |
| | | if (state == 0) |
| | | { |
| | | addValue = config.PerLVAttrValueList[i]; |
| | | } |
| | | else if (state == 1) |
| | | { |
| | | addValue = nextConfig.ClassAttrValueList[i] + nextConfig.PerLVAttrValueList[i]; |
| | | } |
| | | |
| | | nextAttrValueTexts[i].text = PlayerPropertyConfig.GetValueDescription(keys[i], curValue + addValue, 2); |
| | | } |
| | | } |
| | | } |
| | | |
| | | string GetSpecialAttr() |
| | | { |
| | | if (HorseManager.Instance.specialAttrDic.Count == 0) |
| | | return ""; |
| | | |
| | | List<string> attrList = new List<string>(); |
| | | foreach(var attrID in HorseManager.Instance.specialAttrDic.Keys) |
| | | { |