public static int GetInitCombatByHeroId(uint id) { ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey(id); if (dataByKey == null) { return(0); } int combatEftByStarLevel = GetCombatEftByStarLevel(1, dataByKey.iInitialStar); int combatEft = CSkinInfo.GetCombatEft(id, 0); return(combatEftByStarLevel + combatEft); }
public int GetCombatEft() { DebugHelper.Assert(this.mActorValue != null, "GetCombatEft mActorValue is null"); int combatEftByStarLevel = 0; if (this.mActorValue != null) { combatEftByStarLevel = GetCombatEftByStarLevel(this.mActorValue.actorLvl, this.mActorValue.actorStar); } int combatEft = CSkinInfo.GetCombatEft(this.cfgInfo.dwCfgID, this.m_skinInfo.GetWearSkinId()); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); DebugHelper.Assert(masterRoleInfo != null, "GetCombatEft master is null"); int symbolPageEft = 0; if (masterRoleInfo != null) { symbolPageEft = masterRoleInfo.m_symbolInfo.GetSymbolPageEft(this.m_selectPageIndex); } return((combatEftByStarLevel + combatEft) + symbolPageEft); }