// Token: 0x0600FFF9 RID: 65529 RVA: 0x00431F8C File Offset: 0x0043018C private void SetBreakHeroInfo() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetBreakHeroInfo_hotfix != null) { this.m_SetBreakHeroInfo_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.m_heroCharUIController.GetCharImageInfo() != this.m_hero.HeroInfo.GetCharImageInfo(this.m_hero.StarLevel)) { this.m_heroCharUIController.CreateGraphic(this.m_hero, HeroCharUIController.PerformanceState.Break, false, null); this.m_heroCharUIController.PlayAnimation("idle_Normal", false); } HeroPropertyComputer heroPropertyComputer = new HeroPropertyComputer(); heroPropertyComputer.Init(this.m_configDataLoader); HeroPropertyComputer heroPropertyComputer2 = heroPropertyComputer; Hero hero = this.m_hero; int jobRelatedId = this.m_hero.GetActiveJob().JobRelatedId; int starLevel = this.m_hero.StarLevel - 1; int starLevel2 = this.m_hero.StarLevel; heroPropertyComputer2.ComputeHeroProperties(hero, jobRelatedId, -1, -1, starLevel, starLevel2, -1, -1); this.m_heroBreakSuccessInfoHpText.text = heroPropertyComputer.Property0.HealthPointMax.ToString(); this.m_heroBreakSuccessInfoHpAddText.text = (heroPropertyComputer.Property1.HealthPointMax - heroPropertyComputer.Property0.HealthPointMax).ToString(); this.m_heroBreakSuccessInfoATText.text = heroPropertyComputer.Property0.Attack.ToString(); this.m_heroBreakSuccessInfoATAddText.text = (heroPropertyComputer.Property1.Attack - heroPropertyComputer.Property0.Attack).ToString(); this.m_heroBreakSuccessInfoMagicText.text = heroPropertyComputer.Property0.Magic.ToString(); this.m_heroBreakSuccessInfoMagicAddText.text = (heroPropertyComputer.Property1.Magic - heroPropertyComputer.Property0.Magic).ToString(); this.m_heroBreakSuccessInfoDFText.text = heroPropertyComputer.Property0.Defense.ToString(); this.m_heroBreakSuccessInfoDFAddText.text = (heroPropertyComputer.Property1.Defense - heroPropertyComputer.Property0.Defense).ToString(); this.m_heroBreakSuccessInfoMagicDFText.text = heroPropertyComputer.Property0.MagicDefense.ToString(); this.m_heroBreakSuccessInfoMagicDFAddText.text = (heroPropertyComputer.Property1.MagicDefense - heroPropertyComputer.Property0.MagicDefense).ToString(); this.m_heroBreakSuccessInfoDexText.text = heroPropertyComputer.Property0.Dexterity.ToString(); this.m_heroBreakSuccessInfoDexAddText.text = (heroPropertyComputer.Property1.Dexterity - heroPropertyComputer.Property0.Dexterity).ToString(); UIUtility.ReverseShowGameObjectChildrenByActive(this.m_heroStarGroup, this.m_hero.StarLevel - 1); ConfigDataSkillInfo talentSkillInfo = this.m_hero.GetActiveJob().JobConnectionInfo.GetTalentSkillInfo(this.m_hero.StarLevel - 1); if (talentSkillInfo != null) { this.m_talent1Icon.sprite = AssetUtility.Instance.GetSprite(talentSkillInfo.Icon); this.m_talent1NameText.text = talentSkillInfo.Name; this.m_talent1DescText.text = talentSkillInfo.Desc; } ConfigDataSkillInfo talentSkillInfo2 = this.m_hero.GetActiveJob().JobConnectionInfo.GetTalentSkillInfo(this.m_hero.StarLevel); if (talentSkillInfo2 != null) { this.m_talent2Icon.sprite = AssetUtility.Instance.GetSprite(talentSkillInfo2.Icon); this.m_talent2NameText.text = talentSkillInfo2.Name; this.m_talent2DescText.text = talentSkillInfo2.Desc; } }
public static int Init(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); heroPropertyComputer.Init(configDataLoader); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600D7A2 RID: 55202 RVA: 0x003AAEC4 File Offset: 0x003A90C4 public void InitSoldierDesc(ConfigDataSoldierInfo soldierInfo, BattleHero hero, List <TrainingTech> techs, ConfigDataModelSkinResourceInfo soldierSkinResInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitSoldierDescConfigDataSoldierInfoBattleHeroList ` 1ConfigDataModelSkinResourceInfo_hotfix != null) { this.m_InitSoldierDescConfigDataSoldierInfoBattleHeroList ` 1ConfigDataModelSkinResourceInfo_hotfix.call(new object[] { this, soldierInfo, hero, techs, soldierSkinResInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (soldierInfo == null || hero == null) { return; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; HeroPropertyComputer heroPropertyComputer = new HeroPropertyComputer(); heroPropertyComputer.Init(configDataLoader); heroPropertyComputer.ComputeSoldierCommandProperties(hero, soldierInfo, techs, soldierSkinResInfo); this.ShowPanel(); string text = string.Empty; if (soldierSkinResInfo != null) { text = soldierSkinResInfo.Model; } if (string.IsNullOrEmpty(text)) { text = soldierInfo.Model; } this.SetSoldierDetailPanel(soldierInfo, heroPropertyComputer, text); }