public static int GetInitCombatByHeroId(uint id) { ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey(id); if (dataByKey == null) { return(0); } int combatEftByStarLevel = CHeroInfo.GetCombatEftByStarLevel(1, dataByKey.iInitialStar); int combatEft = CSkinInfo.GetCombatEft(id, 0u); return(combatEftByStarLevel + combatEft); }
public int GetCombatEft() { DebugHelper.Assert(this.mActorValue != null, "GetCombatEft mActorValue is null"); int num = 0; if (this.mActorValue != null) { num = CHeroInfo.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 num2 = 0; if (masterRoleInfo != null) { num2 = masterRoleInfo.m_symbolInfo.GetSymbolPageEft(this.m_selectPageIndex); } return(num + combatEft + num2); }