private string GetSkillBuffPropStr(List <AttributeEffectProto.AttributeEffect> buffs) { float value = 0; string str; for (int i = 0; i < buffs.Count; i++) { value += buffs[i].AffectedType == 1 ? buffs[i].MainValue : -buffs[i].MainValue; } if (value == 0) { return(""); } if (value > 0) { str = ExtensionMethodUtils.Localize(buffs.Find(d => d.AffectedType == 1).DescriptionId); } else { str = ExtensionMethodUtils.Localize(buffs.Find(d => d.AffectedType == 2).DescriptionId); } if (buffs[0].CalculateType == 2) { return(string.Format(str, UnityEngine.Mathf.Abs(value * 100) + "%")); } return(string.Format(str, UnityEngine.Mathf.Abs(value))); }
public string GetSkillDeckItemName(int skillDeckItemIndex) { DataManager data = DataManager.GetInstance(); int id = data.GetPlayerSetedPackageInstituteSkills(currentSelectSkillDeckIndex)[skillDeckItemIndex]; int texId = instituteSkillsProto.Find(p => p.ID == id).Txt_ID; return(ExtensionMethodUtils.Localize(texId)); }
//Skill Prop Data public string GetSkillPropDescription(int skillId) { int desId = instituteSkillsProto.Find(p => p.ID == skillId).Description_Id; return(ExtensionMethodUtils.Localize(desId)); }
public string GetInstituteSkillName(int skillIndex) { int texId = GetInstituteList()[skillIndex].Txt_ID; return(ExtensionMethodUtils.Localize(texId)); }