private List <string> GetAttrVals(int talentId, int talentLv) { Debug.LogError(string.Concat(new object[] { "talentId=", talentId, " talentLv=", talentLv })); int maxTalentLv = PetEvoGlobal.GetMaxTalentLv(talentId); if (talentLv == 0) { List <string> list = new List <string>(); list.Add("无"); return(list); } if (talentLv > maxTalentLv) { List <string> list = new List <string>(); list.Add("已达最大等级"); return(list); } ChongWuTianFu chongWuTianFuRow = PetEvoGlobal.GetChongWuTianFuRow(talentId); Debug.LogError("effect=" + chongWuTianFuRow.effect); if (chongWuTianFuRow.effect == 12) { string attributeId = chongWuTianFuRow.parameter.get_Item(0) + "_" + talentLv; int attributeTemplateID = PetEvoGlobal.GetTianFuShuXingRow(attributeId).attributeTemplateID; return(PetEvoGlobal.GetAttrTexts(attributeTemplateID)); } if (chongWuTianFuRow.effect == 13) { string text = chongWuTianFuRow.parameter2.get_Item(0) + "_" + talentLv; Debug.LogError("attributeId=" + text); int attributeTemplateID2 = PetEvoGlobal.GetTianFuShuXingRow(text).attributeTemplateID; Debug.LogError("attributeTemplateID=" + attributeTemplateID2); return(PetEvoGlobal.GetAttrTexts(attributeTemplateID2)); } if (chongWuTianFuRow.effect == 14) { string text2 = chongWuTianFuRow.parameter2.get_Item(0) + "_" + talentLv; Debug.LogError("attributeId=" + text2); int attributeTemplateID3 = PetEvoGlobal.GetTianFuShuXingRow(text2).attributeTemplateID; Debug.LogError("attributeTemplateID=" + attributeTemplateID3); return(PetEvoGlobal.GetAttrTexts(attributeTemplateID3)); } string rowId = chongWuTianFuRow.lvRuleId + "_" + talentLv; int describe = PetEvoGlobal.GetTianFuDengJiGuiZeRow(rowId).describe; if (describe == 0) { List <string> list = new List <string>(); list.Add(string.Empty); return(list); } string chineseContent = GameDataUtils.GetChineseContent(describe, false); string[] array = chineseContent.Split(new char[] { '\n' }); List <string> list2 = new List <string>(); string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string text3 = array2[i]; list2.Add(text3); } return(list2); }