/// <summary> /// 羁绊位置 按配置表中的来 1,2,3 /// </summary> /// <param name="index"></param> public void SetData(int index) { m_CurrentSelectIndex = index; heroGuardTemplate_01 = CharacterTemplateManager.Instance.GetGuard(index, 1, num_Level_Courage_01); heroGuardTemplate_02 = CharacterTemplateManager.Instance.GetGuard(index, 2, num_Level_Loyalty_02); heroGuardTemplate_03 = CharacterTemplateManager.Instance.GetGuard(index, 3, num_Level_Team_03); next_heroGuardTemplate_01 = CharacterTemplateManager.Instance.GetGuard(index, 1, num_Level_Courage_01 + 1); next_heroGuardTemplate_02 = CharacterTemplateManager.Instance.GetGuard(index, 2, num_Level_Loyalty_02 + 1); next_heroGuardTemplate_03 = CharacterTemplateManager.Instance.GetGuard(index, 3, num_Level_Team_03 + 1); SetUILabel(); }
/// <summary>羁绊加成</summary> private static LTAttributesData GetOtherPartnerGuardAttributes(LTAttributesData baseAttr, IDictionary dictionary) { LTAttributesData attrData = new LTAttributesData(); float inf_ATK = 0F; float inc_MaxHP = 0F; float inc_DEF = 0F; for (int index = 1; index <= 3; index++) { for (int con = 1; con <= 3; con++) { int level = EB.Dot.Integer(string.Format("{0}.{1}", index, con), dictionary, 0); HeroGuardTemplate heroGuard = CharacterTemplateManager.Instance.GetGuard(index, con, level); inf_ATK += heroGuard.IncATK; inc_MaxHP += heroGuard.IncMaxHP; inc_DEF += heroGuard.IncDEF; } } attrData.m_MaxHP = baseAttr.m_MaxHP * inc_MaxHP; attrData.m_ATK = baseAttr.m_ATK * inf_ATK; attrData.m_DEF = baseAttr.m_DEF * inc_DEF; return(attrData); }