// 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 ComputeHeroProperties(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 2) { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleHero hero; LuaObject.checkType <BattleHero>(l, 2, out hero); heroPropertyComputer.ComputeHeroProperties(hero); LuaObject.pushValue(l, true); result = 1; } else if (num == 9) { HeroPropertyComputer heroPropertyComputer2 = (HeroPropertyComputer)LuaObject.checkSelf(l); Hero hero2; LuaObject.checkType <Hero>(l, 2, out hero2); int jobConnectionId; LuaObject.checkType(l, 3, out jobConnectionId); int heroLevel; LuaObject.checkType(l, 4, out heroLevel); int heroLevel2; LuaObject.checkType(l, 5, out heroLevel2); int starLevel; LuaObject.checkType(l, 6, out starLevel); int starLevel2; LuaObject.checkType(l, 7, out starLevel2); int jobLevel; LuaObject.checkType(l, 8, out jobLevel); int jobLevel2; LuaObject.checkType(l, 9, out jobLevel2); heroPropertyComputer2.ComputeHeroProperties(hero2, jobConnectionId, heroLevel, heroLevel2, starLevel, starLevel2, jobLevel, jobLevel2); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function ComputeHeroProperties to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectJobMasterPropertyModifier(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 4) { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); Hero hero; LuaObject.checkType <Hero>(l, 2, out hero); int jobConnectionId; LuaObject.checkType(l, 3, out jobConnectionId); int jobLevel; LuaObject.checkType(l, 4, out jobLevel); heroPropertyComputer.m_luaExportHelper.CollectJobMasterPropertyModifier(hero, jobConnectionId, jobLevel); LuaObject.pushValue(l, true); result = 1; } else if (LuaObject.matchType(l, num, 2, typeof(BattleActor))) { HeroPropertyComputer heroPropertyComputer2 = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleActor a; LuaObject.checkType <BattleActor>(l, 2, out a); heroPropertyComputer2.m_luaExportHelper.CollectJobMasterPropertyModifier(a); LuaObject.pushValue(l, true); result = 1; } else if (LuaObject.matchType(l, num, 2, typeof(BattleHero))) { HeroPropertyComputer heroPropertyComputer3 = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleHero hero2; LuaObject.checkType <BattleHero>(l, 2, out hero2); heroPropertyComputer3.m_luaExportHelper.CollectJobMasterPropertyModifier(hero2); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function CollectJobMasterPropertyModifier to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_m_propertyModifier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroPropertyComputer.m_luaExportHelper.m_propertyModifier); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ComputeSoldierCommandProperties(IntPtr l) { int result; try { int num = LuaDLL.lua_gettop(l); if (num == 3) { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); Hero hero; LuaObject.checkType <Hero>(l, 2, out hero); ConfigDataSoldierInfo soldierInfo; LuaObject.checkType <ConfigDataSoldierInfo>(l, 3, out soldierInfo); heroPropertyComputer.ComputeSoldierCommandProperties(hero, soldierInfo); LuaObject.pushValue(l, true); result = 1; } else if (num == 5) { HeroPropertyComputer heroPropertyComputer2 = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleHero hero2; LuaObject.checkType <BattleHero>(l, 2, out hero2); ConfigDataSoldierInfo soldierInfo2; LuaObject.checkType <ConfigDataSoldierInfo>(l, 3, out soldierInfo2); List <TrainingTech> techs; LuaObject.checkType <List <TrainingTech> >(l, 4, out techs); ConfigDataModelSkinResourceInfo soldierSkinResInfo; LuaObject.checkType <ConfigDataModelSkinResourceInfo>(l, 5, out soldierSkinResInfo); heroPropertyComputer2.ComputeSoldierCommandProperties(hero2, soldierInfo2, techs, soldierSkinResInfo); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function ComputeSoldierCommandProperties to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { HeroPropertyComputer o = new HeroPropertyComputer(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_Property2(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroPropertyComputer.Property2); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectPassiveSkillStaticPropertyModifier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); ConfigDataSkillInfo skillInfo; LuaObject.checkType <ConfigDataSkillInfo>(l, 2, out skillInfo); heroPropertyComputer.m_luaExportHelper.CollectPassiveSkillStaticPropertyModifier(skillInfo); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectFetterPropertyModidier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); Dictionary <int, int> fetters; LuaObject.checkType <Dictionary <int, int> >(l, 2, out fetters); heroPropertyComputer.m_luaExportHelper.CollectFetterPropertyModidier(fetters); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_configDataLoader(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); heroPropertyComputer.m_luaExportHelper.m_configDataLoader = configDataLoader; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ComputeSoldierBuffCommandProperties(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleActor a; LuaObject.checkType <BattleActor>(l, 2, out a); heroPropertyComputer.ComputeSoldierBuffCommandProperties(a); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_propertyModifier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); BattlePropertyModifier propertyModifier; LuaObject.checkType <BattlePropertyModifier>(l, 2, out propertyModifier); heroPropertyComputer.m_luaExportHelper.m_propertyModifier = propertyModifier; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetEquipmentResonanceSkillInfos(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); ulong[] equipmentIds; LuaObject.checkArray <ulong>(l, 2, out equipmentIds); List <ConfigDataSkillInfo> equipmentResonanceSkillInfos = heroPropertyComputer.GetEquipmentResonanceSkillInfos(equipmentIds); LuaObject.pushValue(l, true); LuaObject.pushValue(l, equipmentResonanceSkillInfos); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectStaticPropertyModifier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); PropertyModifyType modifyType; LuaObject.checkEnum <PropertyModifyType>(l, 2, out modifyType); int value; LuaObject.checkType(l, 3, out value); heroPropertyComputer.m_luaExportHelper.CollectStaticPropertyModifier(modifyType, value); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectBuffPropertyExchange(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleActor a; LuaObject.checkType <BattleActor>(l, 2, out a); BattleProperty property; LuaObject.checkType <BattleProperty>(l, 3, out property); heroPropertyComputer.m_luaExportHelper.CollectBuffPropertyExchange(a, property); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectBuffPropertyModifier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleActor a; LuaObject.checkType <BattleActor>(l, 2, out a); bool isDynamic; LuaObject.checkType(l, 3, out isDynamic); heroPropertyComputer.m_luaExportHelper.CollectBuffPropertyModifier(a, isDynamic); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ComputeHeroJobLevelUpProperties(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); Hero hero; LuaObject.checkType <Hero>(l, 2, out hero); int jobConnectionId; LuaObject.checkType(l, 3, out jobConnectionId); heroPropertyComputer.ComputeHeroJobLevelUpProperties(hero, jobConnectionId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int CollectSoldierPassiveSkillPropertyModifier(IntPtr l) { int result; try { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); ConfigDataSoldierInfo soldierInfo; LuaObject.checkType <ConfigDataSoldierInfo>(l, 2, out soldierInfo); List <TrainingTech> techs; LuaObject.checkType <List <TrainingTech> >(l, 3, out techs); heroPropertyComputer.m_luaExportHelper.CollectSoldierPassiveSkillPropertyModifier(soldierInfo, techs); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ComputeHeroEquipmentProperties(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 2, typeof(Hero))) { HeroPropertyComputer heroPropertyComputer = (HeroPropertyComputer)LuaObject.checkSelf(l); Hero hero; LuaObject.checkType <Hero>(l, 2, out hero); heroPropertyComputer.ComputeHeroEquipmentProperties(hero); LuaObject.pushValue(l, true); result = 1; } else if (LuaObject.matchType(l, total, 2, typeof(BattleHero))) { HeroPropertyComputer heroPropertyComputer2 = (HeroPropertyComputer)LuaObject.checkSelf(l); BattleHero hero2; LuaObject.checkType <BattleHero>(l, 2, out hero2); heroPropertyComputer2.ComputeHeroEquipmentProperties(hero2); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function ComputeHeroEquipmentProperties to call"); result = 2; } } 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); }
// Token: 0x0600D7A3 RID: 55203 RVA: 0x003AAFD0 File Offset: 0x003A91D0 private void SetSoldierDetailPanel(ConfigDataSoldierInfo soldierInfo, HeroPropertyComputer computer, string assetName) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSoldierDetailPanelConfigDataSoldierInfoHeroPropertyComputerString_hotfix != null) { this.m_SetSoldierDetailPanelConfigDataSoldierInfoHeroPropertyComputerString_hotfix.call(new object[] { this, soldierInfo, computer, assetName }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_soldierTitleText.text = soldierInfo.Name; this.m_soldierIconImg.sprite = AssetUtility.Instance.GetSprite(soldierInfo.m_armyInfo.Icon); float scale = (float)soldierInfo.UI_ModelScale * 0.01f; Vector2 offset = new Vector2((float)soldierInfo.UI_ModelOffsetX, (float)soldierInfo.UI_ModelOffsetY); this.DestroySpineGraphic(this.m_soldierGraphic); this.m_soldierGraphic = this.CreateSpineGraphic(assetName, scale, offset, 0, this.m_soldierDetailGraphic, soldierInfo.ReplaceAnims); this.m_soldierRangeText.text = soldierInfo.BF_AttackDistance.ToString(); this.m_soldierMoveText.text = soldierInfo.BF_MovePoint.ToString(); this.m_typeBgImg.gameObject.SetActive(soldierInfo.IsMelee); this.m_typeBgImg2.gameObject.SetActive(!soldierInfo.IsMelee); this.m_soldierPropHPValueText.text = this.CalcPropValue(computer.Property0.HealthPointMax, 0, false); this.m_soldierPropDFValueText.text = this.CalcPropValue(computer.Property0.Defense, 0, false); this.m_soldierPropATValueText.text = this.CalcPropValue(computer.Property0.Attack, 0, false); this.m_soldierPropMagicDFValueText.text = this.CalcPropValue(computer.Property0.MagicDefense, 0, false); this.m_soldierPropHPAddText.text = this.CalcPropValue(computer.Property0.HealthPointMax, computer.Property1.HealthPointMax, true); this.m_soldierPropDFAddText.text = this.CalcPropValue(computer.Property0.Defense, computer.Property1.Defense, true); this.m_soldierPropATAddText.text = this.CalcPropValue(computer.Property0.Attack, computer.Property1.Attack, true); this.m_soldierPropMagicDFAddText.text = this.CalcPropValue(computer.Property0.MagicDefense, computer.Property1.MagicDefense, true); this.m_soldierDescText.text = UIUtility.GetSoldierCurSkillDesc(soldierInfo); this.m_soldierWeakText.text = soldierInfo.Weak; this.m_soldierStrongText.text = soldierInfo.Strong; }
// Token: 0x0600D7FB RID: 55291 RVA: 0x003ABE7C File Offset: 0x003AA07C public void SetSoldierDetailPanel(ConfigDataSoldierInfo soldierInfo, HeroPropertyComputer computer, string assetName) { this.m_owner.SetSoldierDetailPanel(soldierInfo, computer, assetName); }