// Token: 0x060036D5 RID: 14037 RVA: 0x000F3B74 File Offset: 0x000F1D74 public static int ComputeHeroBattlePower(ConfigDataJobInfo jobInfo, int hp, int at, int df, int magic, int magicDf, int dex, int skillBattlePower) { Fix64 fix = (Fix64)((long)(hp * jobInfo.BattlePowerHP + at * jobInfo.BattlePowerAT + df * jobInfo.BattlePowerDF + magic * jobInfo.BattlePowerMagic + magicDf * jobInfo.BattlePowerMagicDF + dex * jobInfo.BattlePowerDEX)) * BattleFormula.d10000; fix *= Fix64.One + (Fix64)((long)skillBattlePower) * BattleFormula.d10000; return((int)((long)Fix64.Round(fix))); }
// Token: 0x06010DCD RID: 69069 RVA: 0x0045DEE8 File Offset: 0x0045C0E8 public void InitJobMasterItem(ConfigDataJobInfo jobInfo, bool isMaster) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitJobMasterItemConfigDataJobInfoBoolean_hotfix != null) { this.m_InitJobMasterItemConfigDataJobInfoBoolean_hotfix.call(new object[] { this, jobInfo, isMaster }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (isMaster) { this.m_stateCtrl.SetToUIState("Master", false, true); } else { this.m_stateCtrl.SetToUIState("NotMaster", false, true); } this.m_icon.sprite = AssetUtility.Instance.GetSprite(jobInfo.JobIcon); this.m_nameText.text = jobInfo.Name; UIUtility.SetGameObjectChildrenActiveCount(this.m_propertyContent, 0); this.SetMasterRewardProperty(jobInfo.Property1_ID, jobInfo.Property1_Value); this.SetMasterRewardProperty(jobInfo.Property2_ID, jobInfo.Property2_Value); this.SetMasterRewardProperty(jobInfo.Property3_ID, jobInfo.Property3_Value); }
// Token: 0x06012F92 RID: 77714 RVA: 0x004D94D8 File Offset: 0x004D76D8 private void SetValues() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetValues_hotfix != null) { this.m_SetValues_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_heroNameText.text = this.m_hero.HeroInfo.Name; this.m_heroJobText.text = this.m_hero.HeroInfo.m_jobConnectionInfo.m_jobInfo.Name; this.m_armyImage.sprite = AssetUtility.Instance.GetSprite(this.m_hero.HeroInfo.m_jobConnectionInfo.m_jobInfo.m_armyInfo.Icon); this.m_armyText.text = this.m_hero.HeroInfo.m_jobConnectionInfo.m_jobInfo.m_armyInfo.Name; UIUtility.SetGameObjectChildrenActiveCount(this.m_heroStars, this.m_hero.Level); char[] array = this.m_hero.GetActiveJob().JobConnectionInfo.PropertyRating.ToCharArray(); List <Image> list = new List <Image>(); list.Add(this.m_heroHPImage); list.Add(this.m_heroATImage); list.Add(this.m_heroMagicImage); list.Add(this.m_heroDFImage); list.Add(this.m_heroMagicDFImage); list.Add(this.m_heroDEXImage); for (int i = 0; i < array.Length; i++) { string propertyRatingImageName = UIUtility.GetPropertyRatingImageName(array[i]); list[i].sprite = AssetUtility.Instance.GetSprite(propertyRatingImageName); } ConfigDataSkillInfo talentSkillInfo = this.m_hero.GetActiveJob().JobConnectionInfo.GetTalentSkillInfo(this.m_hero.StarLevel); if (talentSkillInfo != null) { this.m_talentIconImg.sprite = AssetUtility.Instance.GetSprite(talentSkillInfo.Icon); this.m_talentNameText.text = talentSkillInfo.Name; this.m_talentDescText.text = talentSkillInfo.Desc; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; List <ConfigDataJobConnectionInfo> list2 = new List <ConfigDataJobConnectionInfo>(); foreach (int key in this.m_hero.HeroInfo.UseableJobConnections_ID) { ConfigDataJobConnectionInfo configDataJobConnectionInfo = configDataLoader.GetConfigDataJobConnectionInfo(key); ConfigDataJobInfo jobInfo = configDataJobConnectionInfo.m_jobInfo; if (jobInfo.Rank == 4) { list2.Add(configDataJobConnectionInfo); } } ConfigDataJobInfo jobInfo2 = list2[0].m_jobInfo; this.m_finalJob1CHNameText.text = jobInfo2.Name; this.m_finalJob1ENNameText.text = jobInfo2.Name_Eng; this.CreateSpineGraphic(list2[0], ref this.m_heroJobGraphic1, this.m_finalJob1GraphicObj); if (list2.Count == 2) { ConfigDataJobInfo jobInfo3 = list2[1].m_jobInfo; this.m_finalJob2Obj.SetActive(true); this.m_finalJob2CHNameText.text = jobInfo3.Name; this.m_finalJob2ENNameText.text = jobInfo3.Name_Eng; this.CreateSpineGraphic(list2[0], ref this.m_heroJobGraphic2, this.m_finalJob2GraphicObj); } else { this.m_finalJob2Obj.SetActive(false); } }