// Token: 0x06010E15 RID: 69141 RVA: 0x0045E818 File Offset: 0x0045CA18 protected override bool IsNeedLoadDynamicRes() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsNeedLoadDynamicRes_hotfix != null) { return(Convert.ToBoolean(this.m_IsNeedLoadDynamicRes_hotfix.call(new object[] { this }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; base.ClearAssetList(); base.CollectSpriteAsset("UI/JobTransfer_ABS/Pattern_Job_01.png"); base.CollectSpriteAsset("UI/JobTransfer_ABS/Pattern_Job_02.png"); base.CollectSpriteAsset("UI/JobTransfer_ABS/Pattern_Job_03.png"); base.CollectSpriteAsset("UI/JobTransfer_ABS/Pattern_Job_04.png"); base.CollectSpriteAsset("UI/JobTransfer_ABS/Pattern_Job_05.png"); base.CollectSpriteAsset("UI/Common_New_ABS/Icon_Up.png"); base.CollectSpriteAsset("UI/Common_New_ABS/Icon_Minus.png"); base.CollectSpriteAsset("UI/Common_New_ABS/Icon_Down.png"); ConfigDataJobConnectionInfo curJobConnectionInfo = this.m_curJobConnectionInfo; if (curJobConnectionInfo == null) { return(false); } base.CollectAsset(curJobConnectionInfo.Model); foreach (ConfigDataJobLevelInfo configDataJobLevelInfo in curJobConnectionInfo.m_jobLevelInfos) { if (configDataJobLevelInfo.m_gotSoldierInfo != null) { base.CollectAsset(configDataJobLevelInfo.m_gotSoldierInfo.Model); } } return(base.IsNeedLoadDynamicRes()); }
// Token: 0x06010E1A RID: 69146 RVA: 0x0045EC78 File Offset: 0x0045CE78 private void InitDataFromUIIntent(UIIntent intent) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitDataFromUIIntentUIIntent_hotfix != null) { this.m_InitDataFromUIIntentUIIntent_hotfix.call(new object[] { this, intent }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; UIIntentCustom uiintentCustom = intent as UIIntentCustom; if (uiintentCustom != null) { Hero classParam = uiintentCustom.GetClassParam <Hero>("hero"); ConfigDataJobConnectionInfo classParam2 = uiintentCustom.GetClassParam <ConfigDataJobConnectionInfo>("jobConnectionInfo"); if (this.m_hero != classParam && classParam != null) { this.m_hero = classParam; } if (this.m_curJobConnectionInfo != classParam2 && classParam2 != null) { this.m_curJobConnectionInfo = classParam2; } else { this.m_curJobConnectionInfo = this.m_hero.GetActiveJob().JobConnectionInfo; } } }
// Token: 0x06012F93 RID: 77715 RVA: 0x004D984C File Offset: 0x004D7A4C private void CreateSpineGraphic(ConfigDataJobConnectionInfo jobConnectionInfo, ref UISpineGraphic m_graphic, GameObject m_grapgicObj) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateSpineGraphicConfigDataJobConnectionInfoUISpineGraphic_GameObject_hotfix != null) { LuaDelegation.Lua_BlackJack_ProjectL_UI_HeroSimpleItemInfoUIController_CreateSpineGraphic_ConfigDataJobConnectionInfo_UISpineGraphic_GameObject(this, this.m_CreateSpineGraphicConfigDataJobConnectionInfoUISpineGraphic_GameObject_hotfix, jobConnectionInfo, ref m_graphic, m_grapgicObj); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.DestroySpineGraphic(ref m_graphic); if (jobConnectionInfo == null) { return; } m_graphic = new UISpineGraphic(); float num = (float)jobConnectionInfo.UI_ModelScale * 0.01f; Vector2 position = new Vector2((float)jobConnectionInfo.UI_ModelOffsetX, (float)jobConnectionInfo.UI_ModelOffsetY); m_graphic.Create(jobConnectionInfo.Model); m_graphic.SetParent(m_grapgicObj); m_graphic.SetDirection(1); m_graphic.SetPosition(position); m_graphic.SetScale(num); m_graphic.SetRectTransformSize(new Vector2(500f / num, 500f / num)); m_graphic.SetReplaceAnimations(jobConnectionInfo.ReplaceAnims); m_graphic.PlayAnimation("idle", true, 0); m_graphic.ForceUpdate(); }
// Token: 0x0601143C RID: 70716 RVA: 0x0047AC7C File Offset: 0x00478E7C public void InitHeroSkinJobItem(ConfigDataJobConnectionInfo jobConnectionInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitHeroSkinJobItemConfigDataJobConnectionInfo_hotfix != null) { this.m_InitHeroSkinJobItemConfigDataJobConnectionInfo_hotfix.call(new object[] { this, jobConnectionInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_nameText.text = jobConnectionInfo.m_jobInfo.Name; this.m_iconImage.sprite = AssetUtility.Instance.GetSprite(jobConnectionInfo.m_jobInfo.JobIcon); }
// Token: 0x06010E20 RID: 69152 RVA: 0x0045F08C File Offset: 0x0045D28C private void HeroJobTransferUIController_OnHeroJobCardClick(ConfigDataJobConnectionInfo jci) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_HeroJobTransferUIController_OnHeroJobCardClickConfigDataJobConnectionInfo_hotfix != null) { this.m_HeroJobTransferUIController_OnHeroJobCardClickConfigDataJobConnectionInfo_hotfix.call(new object[] { this, jci }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_curJobConnectionInfo = jci; base.StartUpdatePipeLine(null, false, false, true); }
// Token: 0x060097EF RID: 38895 RVA: 0x002B5D94 File Offset: 0x002B3F94 public void UpdateGraphics() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateGraphics_hotfix != null) { this.m_UpdateGraphics_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.m_hero == null) { return; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; bool flag = false; ConfigDataJobConnectionInfo jobConnectionInfo = this.m_hero.GetActiveJob().JobConnectionInfo; if (jobConnectionInfo != null) { string heroModelAssetPath = UIUtility.GetHeroModelAssetPath(this.m_hero); flag = this.UpdateGraphic(0, heroModelAssetPath, (float)jobConnectionInfo.BF_ModelScale * 0.01f, jobConnectionInfo.ReplaceAnims); } ConfigDataSoldierInfo selectedSoldierInfo = this.m_hero.SelectedSoldierInfo; if (selectedSoldierInfo != null) { ConfigDataModelSkinResourceInfo selectedSoldierModelSkinResourceInfo = this.m_hero.GetSelectedSoldierModelSkinResourceInfo(configDataLoader); string text = string.Empty; if (selectedSoldierModelSkinResourceInfo != null) { text = selectedSoldierModelSkinResourceInfo.Model; } if (string.IsNullOrEmpty(text)) { text = selectedSoldierInfo.Model; } for (int i = 1; i <= this.m_soldierCount; i++) { flag |= this.UpdateGraphic(i, text, (float)selectedSoldierInfo.BF_ModelScale * 0.01f, selectedSoldierInfo.ReplaceAnims); } } if (flag) { this.PlayAnimation("idle", true); } }
public static int GetJobConnectionInfo(IntPtr l) { int result; try { GoddessDialogJobButton goddessDialogJobButton = (GoddessDialogJobButton)LuaObject.checkSelf(l); ConfigDataJobConnectionInfo jobConnectionInfo = goddessDialogJobButton.GetJobConnectionInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, jobConnectionInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06010B3C RID: 68412 RVA: 0x00455A1C File Offset: 0x00453C1C public void InitHeroJobCardItem(Hero hero, ConfigDataJobConnectionInfo jobConnectionInfo, int rank) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitHeroJobCardItemHeroConfigDataJobConnectionInfoInt32_hotfix != null) { this.m_InitHeroJobCardItemHeroConfigDataJobConnectionInfoInt32_hotfix.call(new object[] { this, hero, jobConnectionInfo, rank }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_hero = hero; this.JobConnectionInfo = jobConnectionInfo; this.m_rank = rank; this.SetInfoByState(); }
// Token: 0x06008BE8 RID: 35816 RVA: 0x0028D264 File Offset: 0x0028B464 public void CreateGraphic(ConfigDataJobConnectionInfo jobConnectionInfo, ConfigDataModelSkinResourceInfo heroSkinResInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateGraphicConfigDataJobConnectionInfoConfigDataModelSkinResourceInfo_hotfix != null) { this.m_CreateGraphicConfigDataJobConnectionInfoConfigDataModelSkinResourceInfo_hotfix.call(new object[] { this, jobConnectionInfo, heroSkinResInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (jobConnectionInfo == null) { return; } string text = string.Empty; if (heroSkinResInfo != null) { text = heroSkinResInfo.Model; } if (string.IsNullOrEmpty(text)) { text = jobConnectionInfo.Model; } if (this.m_graphic != null && this.m_graphic.AssetName == text) { return; } this.DestroyGraphic(); this.m_graphic = this.m_clientWorld.CreateGraphic(text, 0.6f); if (this.m_graphic != null) { this.m_graphic.SetReplaceAnimations(jobConnectionInfo.ReplaceAnims); this.m_graphic.SetName("Player"); this.m_graphic.SetRotation(ClientWorldConst.FaceCameraRotation); this.m_graphic.SetSortingOrder(2); } this.Locate(this.m_position, this.m_direction); this.PlayAnimation("idle", true); }
// Token: 0x06010A09 RID: 68105 RVA: 0x00451D0C File Offset: 0x0044FF0C public void InitSoldierItem(ConfigDataSoldierInfo si, ConfigDataJobConnectionInfo jci, bool isSoliderGet, int soldierSkinId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitSoldierItemConfigDataSoldierInfoConfigDataJobConnectionInfoBooleanInt32_hotfix != null) { this.m_InitSoldierItemConfigDataSoldierInfoConfigDataJobConnectionInfoBooleanInt32_hotfix.call(new object[] { this, si, jci, isSoliderGet, soldierSkinId }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.SoldierInfo == si && this.JobConnectionInfo == jci && this.m_isSoldierGet == isSoliderGet && this.m_soldierSkinId == soldierSkinId) { return; } this.SoldierInfo = si; this.JobConnectionInfo = jci; this.m_isSoldierGet = isSoliderGet; this.m_soldierSkinId = soldierSkinId; this.m_soldierNameText.text = si.Name; this.m_dontGetObj.SetActive(!isSoliderGet); this.CreateSpineGraphic(si, isSoliderGet, soldierSkinId); ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; int num = 0; foreach (int num2 in si.SoldierSkins_ID) { ConfigDataSoldierSkinInfo configDataSoldierSkinInfo = configDataLoader.GetConfigDataSoldierSkinInfo(num2); if (projectLPlayerContext.HasOwn(GoodsType.GoodsType_SoldierSkin, num2) || configDataSoldierSkinInfo.IsShowBeforeGet) { if (projectLPlayerContext.IsShowSkinBeforeOnSale(configDataSoldierSkinInfo.FixedStoreItemId, false)) { num++; } } } this.m_skinIconImage.SetActive(num > 0); }
// Token: 0x0600E156 RID: 57686 RVA: 0x003CAE98 File Offset: 0x003C9098 private void SetSoldierSpine() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSoldierSpine_hotfix != null) { this.m_SetSoldierSpine_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; int heroId = this.m_heroAssistantsTask.AssignedHeroIds[0]; Hero hero = this.m_playerContext.GetHero(heroId); ConfigDataJobConnectionInfo jobConnectionInfo = hero.GetActiveJob().JobConnectionInfo; string model = jobConnectionInfo.Model; float scale = (float)jobConnectionInfo.UI_ModelScale * 0.008f; Vector2 offset = new Vector2((float)jobConnectionInfo.UI_ModelOffsetX, (float)jobConnectionInfo.UI_ModelOffsetY) * 1.4f; List <ReplaceAnim> replaceAnims = jobConnectionInfo.ReplaceAnims; HeroDetailUIController.CreateSpineGraphic(ref this.m_playerHeroGraphic, model, this.m_charGameObject, 1, offset, scale, replaceAnims); }
// Token: 0x0600EEB6 RID: 61110 RVA: 0x003FB098 File Offset: 0x003F9298 public void SetJobConnectionInfo(ConfigDataJobConnectionInfo jobConnectionInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetJobConnectionInfoConfigDataJobConnectionInfo_hotfix != null) { this.m_SetJobConnectionInfoConfigDataJobConnectionInfo_hotfix.call(new object[] { this, jobConnectionInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_jobConnectionInfo = jobConnectionInfo; this.m_nameTex.text = jobConnectionInfo.m_jobInfo.Name; this.m_descTex.text = jobConnectionInfo.m_jobInfo.Desc; this.m_armyIconImage.sprite = AssetUtility.Instance.GetSprite(jobConnectionInfo.m_jobInfo.m_armyInfo.Icon_NoBack); float scale = (float)jobConnectionInfo.UI_ModelScale * 0.012f; Vector2 offset = new Vector2((float)jobConnectionInfo.UI_ModelOffsetX, (float)jobConnectionInfo.UI_ModelOffsetY) * 1.2f; this.CreateSpineGraphic(jobConnectionInfo.Model, scale, offset, this.m_graphicGameObject, jobConnectionInfo.ReplaceAnims); }
// Token: 0x06012FE8 RID: 77800 RVA: 0x004DA020 File Offset: 0x004D8220 public void CreateSpineGraphic(ConfigDataJobConnectionInfo jobConnectionInfo, ref UISpineGraphic m_graphic, GameObject m_grapgicObj) { this.m_owner.CreateSpineGraphic(jobConnectionInfo, ref m_graphic, m_grapgicObj); }
// 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); } }
// Token: 0x0600371C RID: 14108 RVA: 0x000F5AEC File Offset: 0x000F3CEC public void ComputeHeroProperties(IConfigDataLoader configDataLoader, ConfigDataHeroInfo heroInfo, ConfigDataJobConnectionInfo jobConnectionInfo, int jobLevel, int heroLevel, int heroStar, BattlePropertyModifier pm) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ComputeHeroPropertiesIConfigDataLoaderConfigDataHeroInfoConfigDataJobConnectionInfoInt32Int32Int32BattlePropertyModifier_hotfix != null) { this.m_ComputeHeroPropertiesIConfigDataLoaderConfigDataHeroInfoConfigDataJobConnectionInfoInt32Int32Int32BattlePropertyModifier_hotfix.call(new object[] { this, configDataLoader, heroInfo, jobConnectionInfo, jobLevel, heroLevel, heroStar, pm }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; int growMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_HPMul); int growAdd = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_HPAdd); int buffMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_HPMul); int buffAdd = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_HPAdd); int selfMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_HPMul); int selfAdd = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_HPAdd); int growMul2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_ATMul); int growAdd2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_ATAdd); int buffMul2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_ATMul); int buffAdd2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_ATAdd); int selfMul2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_ATMul); int selfAdd2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_ATAdd); int growMul3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_DFMul); int growAdd3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_DFAdd); int buffMul3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_DFMul); int buffAdd3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_DFAdd); int selfMul3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_DFMul); int selfAdd3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_DFAdd); int growMul4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_MagicMul); int growAdd4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_MagicAdd); int buffMul4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicMul); int buffAdd4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicAdd); int selfMul4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_MagicMul); int selfAdd4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_MagicAdd); int growMul5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_MagicDFMul); int growAdd5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_MagicDFAdd); int buffMul5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicDFMul); int buffAdd5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicDFAdd); int selfMul5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_MagicDFMul); int selfAdd5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_MagicDFAdd); int growMul6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_DEXMul); int growAdd6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_DEXAdd); int buffMul6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_DEXMul); int buffAdd6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_DEXAdd); int selfMul6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_DEXMul); int selfAdd6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_DEXAdd); int heroStarMul = 0; int heroStarMul2 = 0; int heroStarMul3 = 0; int heroStarMul4 = 0; int heroStarMul5 = 0; int heroStarMul6 = 0; if (heroStar > 0) { int index = heroStar - 1; heroStarMul = heroInfo.HPStar[index]; heroStarMul2 = heroInfo.ATStar[index]; heroStarMul3 = heroInfo.DFStar[index]; heroStarMul4 = heroInfo.MagicStar[index]; heroStarMul5 = heroInfo.MagicDFStar[index]; heroStarMul6 = heroInfo.DEXStar[index]; } ConfigDataJobLevelInfo configDataJobLevelInfo = jobConnectionInfo.m_jobLevelInfos[jobLevel]; this.HealthPointMax = BattleFormula.ComputeHeroBattleProperty(configDataJobLevelInfo.HP_INI, configDataJobLevelInfo.HP_UP, heroLevel, heroStarMul, growMul, growAdd, buffMul, buffAdd, selfMul, selfAdd); this.Attack = BattleFormula.ComputeHeroBattleProperty(configDataJobLevelInfo.AT_INI, configDataJobLevelInfo.AT_UP, heroLevel, heroStarMul2, growMul2, growAdd2, buffMul2, buffAdd2, selfMul2, selfAdd2); this.Defense = BattleFormula.ComputeHeroBattleProperty(configDataJobLevelInfo.DF_INI, configDataJobLevelInfo.DF_UP, heroLevel, heroStarMul3, growMul3, growAdd3, buffMul3, buffAdd3, selfMul3, selfAdd3); this.Magic = BattleFormula.ComputeHeroBattleProperty(configDataJobLevelInfo.Magic_INI, configDataJobLevelInfo.Magic_UP, heroLevel, heroStarMul4, growMul4, growAdd4, buffMul4, buffAdd4, selfMul4, selfAdd4); this.MagicDefense = BattleFormula.ComputeHeroBattleProperty(configDataJobLevelInfo.MagicDF_INI, configDataJobLevelInfo.MagicDF_UP, heroLevel, heroStarMul5, growMul5, growAdd5, buffMul5, buffAdd5, selfMul5, selfAdd5); this.Dexterity = BattleFormula.ComputeHeroBattleProperty(configDataJobLevelInfo.DEX_INI, configDataJobLevelInfo.DEX_UP, heroLevel, heroStarMul6, growMul6, growAdd6, buffMul6, buffAdd6, selfMul6, selfAdd6); this.Buff_PhysicalDamageMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_PsyDmgMul); this.Buff_PhysicalDamageReceiveMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_PsyDmgRecvMul); this.Buff_SuperPhysicalDamageReceiveMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_SuperPsyDmgRecvMul); this.Buff_HealMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_HealMul); this.Buff_HealReceiveMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_HealRecvMul); this.Buff_MagicalDamageMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicDmgMul); this.Buff_MagicalDamageReceiveMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicDmgRecvMul); this.Buff_SuperMagicalDamageReceiveMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_SuperMagicDmgRecvMul); this.Buff_IgnoreDFMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_IgnoreDFMul); if (this.Buff_IgnoreDFMul > 10000) { this.Buff_IgnoreDFMul = 10000; } this.Buff_SkillDamageMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_SkillDmgMul); this.Buff_BFSkillDamageMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_BFSkillDmgMul); this.Buff_RangeDamageReceiveMul = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_RangeDmgRecvMul); this.Buff_ReceiveCriticalRateAdd = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_RecvCriticalRateAdd); int const_CriticalDamageBase = configDataLoader.Const_CriticalDamageBase; int num = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_CriticalDamageAdd); int num2 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_CriticalDamageAdd); int num3 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_CriticalDamageAdd); this.CriticalDamage = const_CriticalDamageBase + (num + num2 + num3); int num4 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_CriticalRateAdd); int num5 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_CriticalRateAdd); int num6 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_CriticalRateAdd); this.CriticalRate = this.Dexterity * 10 + (num4 + num5 + num6); if (this.CriticalRate > 10000) { this.CriticalRate = 10000; } int num7 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_HPCmdAdd); int num8 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_HPCmdAdd); int num9 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_HPCmdAdd); int num10 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_ATCmdAdd); int num11 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_ATCmdAdd); int num12 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_ATCmdAdd); int num13 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_DFCmdAdd); int num14 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_DFCmdAdd); int num15 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_DFCmdAdd); int num16 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_MagicDFCmdAdd); int num17 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicDFCmdAdd); int num18 = pm.Get(PropertyModifyType.PropertyModifyType_Hero3_MagicDFCmdAdd); this.Cmd_HealthPoint = heroInfo.HPCmd_INI + num7 + num8 + num9; this.Cmd_Attack = heroInfo.ATCmd_INI + num10 + num11 + num12; this.Cmd_Defense = heroInfo.DFCmd_INI + num13 + num14 + num15; this.Cmd_MagicDefense = heroInfo.MagicDFCmd_INI + num16 + num17 + num18; int num19 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_BFAttackDistanceAdd); int num20 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_BFAttackDistanceAdd); this.AttackDistance = jobConnectionInfo.m_jobInfo.BF_AttackDistance + num19 + num20; this.AttackDistance = BattleProperty.ClampNegativeValue(this.AttackDistance); this.MagicSkillDistanceAdd = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_MagicDistanceAdd); this.PhysicalSkillDistanceAdd = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_PsyDistanceAdd); int num21 = pm.Get(PropertyModifyType.PropertyModifyType_Hero1_BFMovePointAdd); int num22 = pm.Get(PropertyModifyType.PropertyModifyType_Hero2_BFMovePointAdd); this.MovePoint = jobConnectionInfo.m_jobInfo.BF_MovePoint + num21 + num22; this.MovePoint = BattleProperty.ClampNegativeValue(this.MovePoint); }
// Token: 0x06003B16 RID: 15126 RVA: 0x0010D864 File Offset: 0x0010BA64 public static BattleActorSetup CreateBattleActorSetupFromBattleHero(IConfigDataLoader configDataLoader, BattleHero hero, int level = 0, int behaviorId = -1, int groupId = 0) { BattleActorSetup battleActorSetup = new BattleActorSetup(); battleActorSetup.HeroInfo = configDataLoader.GetConfigDataHeroInfo(hero.HeroId); battleActorSetup.JobConnectionInfo = configDataLoader.GetConfigDataJobConnectionInfo(hero.ActiveHeroJobRelatedId); battleActorSetup.SoldierInfo = configDataLoader.GetConfigDataSoldierInfo(hero.SelectedSoldierId); battleActorSetup.HeroStar = hero.StarLevel; battleActorSetup.JobLevel = hero.GetJob(hero.ActiveHeroJobRelatedId).JobLevel; battleActorSetup.SoldierCount = configDataLoader.Const_SoldierCountMax; battleActorSetup.ActionValue = hero.ActionValue; battleActorSetup.BehaviorId = behaviorId; battleActorSetup.GroupId = groupId; battleActorSetup.PlayerIndex = -1; if (level > 0) { battleActorSetup.HeroLevel = level; } else { battleActorSetup.HeroLevel = hero.Level; } if (hero.SelectedSkillList.Count > 0) { List <ConfigDataSkillInfo> list = new List <ConfigDataSkillInfo>(); foreach (int key in hero.SelectedSkillList) { ConfigDataSkillInfo configDataSkillInfo = configDataLoader.GetConfigDataSkillInfo(key); if (configDataSkillInfo != null) { list.Add(configDataSkillInfo); } } if (list.Count > 0) { battleActorSetup.SkillInfos = list.ToArray(); } } if (hero.Jobs.Count > 0) { List <ConfigDataJobInfo> list2 = new List <ConfigDataJobInfo>(); foreach (BattleHeroJob battleHeroJob in hero.Jobs) { ConfigDataJobConnectionInfo configDataJobConnectionInfo = configDataLoader.GetConfigDataJobConnectionInfo(battleHeroJob.JobRelatedId); if (configDataJobConnectionInfo.IsJobLevelMax(battleHeroJob.JobLevel)) { list2.Add(configDataJobConnectionInfo.m_jobInfo); } } if (list2.Count > 0) { battleActorSetup.MasterJobInfos = list2.ToArray(); } } if (hero.Fetters.Count > 0) { List <ConfigDataSkillInfo> list3 = new List <ConfigDataSkillInfo>(); foreach (KeyValuePair <int, int> keyValuePair in hero.Fetters) { ConfigDataHeroFetterInfo configDataHeroFetterInfo = configDataLoader.GetConfigDataHeroFetterInfo(keyValuePair.Key); if (configDataHeroFetterInfo != null) { int num = keyValuePair.Value - 1; if (num < configDataHeroFetterInfo.GotSkills_ID.Count) { ConfigDataSkillInfo configDataSkillInfo2 = configDataLoader.GetConfigDataSkillInfo(configDataHeroFetterInfo.GotSkills_ID[num]); if (configDataSkillInfo2 != null) { list3.Add(configDataSkillInfo2); } } } } if (list3.Count > 0) { battleActorSetup.FetterSkillInfos = list3.ToArray(); } } if (hero.Equipments.Count > 0) { List <BattleActorEquipment> list4 = new List <BattleActorEquipment>(); foreach (BattleHeroEquipment battleHeroEquipment in hero.Equipments) { ConfigDataEquipmentInfo configDataEquipmentInfo = configDataLoader.GetConfigDataEquipmentInfo(battleHeroEquipment.Id); if (configDataEquipmentInfo != null) { BattleActorEquipment battleActorEquipment = new BattleActorEquipment(); battleActorEquipment.EquipmentInfo = configDataEquipmentInfo; battleActorEquipment.Level = battleHeroEquipment.Level; if (battleHeroEquipment.EnchantProperties.Count > 0) { battleActorEquipment.EnchantProperties = new CommonBattleProperty[battleHeroEquipment.EnchantProperties.Count]; for (int i = 0; i < battleHeroEquipment.EnchantProperties.Count; i++) { battleActorEquipment.EnchantProperties[i] = battleHeroEquipment.EnchantProperties[i]; } } list4.Add(battleActorEquipment); } } if (list4.Count > 0) { battleActorSetup.Equipments = list4.ToArray(); } List <ConfigDataSkillInfo> equipmentResonanceSkillInfos = BattleUtility.GetEquipmentResonanceSkillInfos(configDataLoader, hero.Equipments); if (equipmentResonanceSkillInfos.Count > 0) { battleActorSetup.ResonanceSkillInfos = equipmentResonanceSkillInfos.ToArray(); } } battleActorSetup.HeroCharImageSkinResourceInfo = hero.GetHeroCharImageSkinResourceInfo(configDataLoader); battleActorSetup.HeroModelSkinResourceInfo = hero.GetHeroActiveJobModelSkinResourceInfo(configDataLoader); battleActorSetup.SoldierModelSkinResourceInfo = hero.GetSelectedSoldierModelSkinResourceInfo(configDataLoader); return(battleActorSetup); }
// Token: 0x06010E6F RID: 69231 RVA: 0x0045F92C File Offset: 0x0045DB2C public void HeroJobTransferUIController_OnHeroJobCardClick(ConfigDataJobConnectionInfo jci) { this.m_owner.HeroJobTransferUIController_OnHeroJobCardClick(jci); }