// Token: 0x06007795 RID: 30613 RVA: 0x0020A270 File Offset: 0x00208470
        public void SetSuccessThearchyTrialLevel(ConfigDataThearchyTrialLevelInfo levelInfo, List <int> battleTreasures, List <int> heroes, bool isTeamBattle = false)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessThearchyTrialLevelConfigDataThearchyTrialLevelInfoList ` 1List ` 1Boolean_hotfix != null)
            {
                this.m_SetSuccessThearchyTrialLevelConfigDataThearchyTrialLevelInfoList ` 1List ` 1Boolean_hotfix.call(new object[]
                {
                    this,
                    levelInfo,
                    battleTreasures,
                    heroes,
                    isTeamBattle
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int energyCost = 0;

            if (!isTeamBattle)
            {
                energyCost = levelInfo.EnergySuccess - levelInfo.EnergyFail;
            }
            this.SetCommonSuccessThearchyTrialLevel(levelInfo, battleTreasures, heroes, energyCost, isTeamBattle);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = levelInfo.PlayerExp;
            battleReward.HeroExp   = this.m_hero.GetAdditiveHeroAddExp(levelInfo.HeroExp);
            battleReward.Gold      = levelInfo.Gold;
        }
Example #2
0
        // Token: 0x06006E92 RID: 28306 RVA: 0x001EF928 File Offset: 0x001EDB28
        public void SetSuccessClimbTowerLevel(ConfigDataTowerFloorInfo floorInfo, ConfigDataTowerLevelInfo levelInfo, List <int> battleTreasures, bool isTeamBattle)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessClimbTowerLevelConfigDataTowerFloorInfoConfigDataTowerLevelInfoList ` 1Boolean_hotfix != null)
            {
                this.m_SetSuccessClimbTowerLevelConfigDataTowerFloorInfoConfigDataTowerLevelInfoList ` 1Boolean_hotfix.call(new object[]
                {
                    this,
                    floorInfo,
                    levelInfo,
                    battleTreasures,
                    isTeamBattle
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int energyCost = 0;

            if (!isTeamBattle)
            {
                energyCost = floorInfo.EnergySuccess - floorInfo.EnergyFail;
            }
            base.SetCommonSuccessClimbTowerLevel(floorInfo, levelInfo, battleTreasures, energyCost);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = floorInfo.PlayerExp;
        }
Example #3
0
        // Token: 0x06006C2B RID: 27691 RVA: 0x001E4FB8 File Offset: 0x001E31B8
        public void FinsihArenaBattle(bool isWin)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_FinsihArenaBattleBoolean_hotfix != null)
            {
                this.m_FinsihArenaBattleBoolean_hotfix.call(new object[]
                {
                    this,
                    isWin
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ArenaOpponentDefensiveBattleInfo arenaDefensiveBattleInfo = base.GetArenaDefensiveBattleInfo();

            if (arenaDefensiveBattleInfo == null)
            {
                Debug.LogError("FinsihArenaBattle, defensivBattleInfo is null");
                return;
            }
            if (isWin)
            {
                base.SetSuccessArenaBattle(arenaDefensiveBattleInfo.ArenaOpponentPointZoneId);
                BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();
                battleReward.PlayerExp = this.m_configDataLoader.ConfigableConstId_ArenaAddPlayerExp;
                battleReward.HeroExp   = this.m_hero.GetAdditiveHeroAddExp(this.m_configDataLoader.ConfigableConstId_ArenaAddHeroExp);
            }
            base.OnFinishedArenaBattle(arenaDefensiveBattleInfo, isWin);
        }
Example #4
0
        // Token: 0x06007686 RID: 30342 RVA: 0x00206E18 File Offset: 0x00205018
        public int RaidRiftLevel(int riftlevelId, int nums)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RaidRiftLevelInt32Int32_hotfix != null)
            {
                return(Convert.ToInt32(this.m_RaidRiftLevelInt32Int32_hotfix.call(new object[]
                {
                    this,
                    riftlevelId,
                    nums
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ConfigDataRiftLevelInfo configDataRiftLevelInfo = this.m_configDataLoader.GetConfigDataRiftLevelInfo(riftlevelId);

            if (configDataRiftLevelInfo == null)
            {
                return(-808);
            }
            for (int i = 0; i < nums; i++)
            {
                base.SetRaidSuccessRiftLevel(configDataRiftLevelInfo);
            }
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = configDataRiftLevelInfo.PlayerExpReward * nums;
            battleReward.HeroExp   = 0;
            battleReward.Gold      = configDataRiftLevelInfo.GoldReward * nums;
            return(0);
        }
Example #5
0
        // Token: 0x06007804 RID: 30724 RVA: 0x0020B500 File Offset: 0x00209700
        protected override void SetSuccessTreasureMapLevel(ConfigDataTreasureLevelInfo levelInfo, List <int> battleTreasures)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessTreasureMapLevelConfigDataTreasureLevelInfoList ` 1_hotfix != null)
            {
                this.m_SetSuccessTreasureMapLevelConfigDataTreasureLevelInfoList ` 1_hotfix.call(new object[]
                {
                    this,
                    levelInfo,
                    battleTreasures
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.SetSuccessTreasureMapLevel(levelInfo, battleTreasures);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = levelInfo.PlayerExp;
        }
Example #6
0
        // Token: 0x06006EFE RID: 28414 RVA: 0x001F132C File Offset: 0x001EF52C
        public void SetSuccessCooperateBattleLevel(ConfigDataCooperateBattleLevelInfo levelInfo, List <int> battleTreasures, List <int> heroes)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessCooperateBattleLevelConfigDataCooperateBattleLevelInfoList ` 1List ` 1_hotfix != null)
            {
                this.m_SetSuccessCooperateBattleLevelConfigDataCooperateBattleLevelInfoList ` 1List ` 1_hotfix.call(new object[]
                {
                    this,
                    levelInfo,
                    battleTreasures,
                    heroes
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.SetCommonSuccessCooperateBattleLevel(levelInfo, heroes, battleTreasures);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = levelInfo.PlayerExp;
            battleReward.HeroExp   = this.m_hero.GetAdditiveHeroAddExp(levelInfo.HeroExp);
            battleReward.Gold      = levelInfo.Gold;
        }
        // Token: 0x0600723F RID: 29247 RVA: 0x001FA850 File Offset: 0x001F8A50
        public void SetSuccessHeroPhantomLevel(HeroPhantomLevel Level, List <int> Heroes, List <int> BattleTreasures, List <int> newAchievementIds)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessHeroPhantomLevelHeroPhantomLevelList ` 1List ` 1List ` 1_hotfix != null)
            {
                this.m_SetSuccessHeroPhantomLevelHeroPhantomLevelList ` 1List ` 1List ` 1_hotfix.call(new object[]
                {
                    this,
                    Level,
                    Heroes,
                    BattleTreasures,
                    newAchievementIds
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.SetCommonSuccessHeroPhantomLevel(Level, Heroes, BattleTreasures, newAchievementIds);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = Level.UserExp;
            battleReward.HeroExp   = this.m_hero.GetAdditiveHeroAddExp(Level.HeroExp);
            battleReward.Gold      = Level.GoldBonus;
        }
Example #8
0
        // Token: 0x06007680 RID: 30336 RVA: 0x002068C4 File Offset: 0x00204AC4
        public override void SetSuccessRiftLevel(ConfigDataRiftLevelInfo riftLevelInfo, List <int> newAchievementIds, int stars, List <int> battleTreasures)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSuccessRiftLevelConfigDataRiftLevelInfoList ` 1Int32List ` 1_hotfix != null)
            {
                this.m_SetSuccessRiftLevelConfigDataRiftLevelInfoList ` 1Int32List ` 1_hotfix.call(new object[]
                {
                    this,
                    riftLevelInfo,
                    newAchievementIds,
                    stars,
                    battleTreasures
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.SetSuccessRiftLevel(riftLevelInfo, newAchievementIds, stars, battleTreasures);
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();

            battleReward.PlayerExp = riftLevelInfo.PlayerExpReward;
            battleReward.HeroExp   = this.m_hero.GetAdditiveHeroAddExp(riftLevelInfo.HeroExpReward);
            battleReward.Gold      = riftLevelInfo.GoldReward;
        }
Example #9
0
        // Token: 0x06006E93 RID: 28307 RVA: 0x001EFA08 File Offset: 0x001EDC08
        public int RaidClimbTowerLevel(int reachFloorId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RaidClimbTowerLevelInt32_hotfix != null)
            {
                return(Convert.ToInt32(this.m_RaidClimbTowerLevelInt32_hotfix.call(new object[]
                {
                    this,
                    reachFloorId
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward();
            int          num          = this.GetFinishedFloorId() + 1;

            for (int i = num; i <= reachFloorId; i++)
            {
                ConfigDataTowerFloorInfo configDataTowerFloorInfo = this.m_configDataLoader.GetConfigDataTowerFloorInfo(i);
                base.SetRaidSuccessClimbTowerLevel(configDataTowerFloorInfo);
                battleReward.PlayerExp += configDataTowerFloorInfo.PlayerExp;
            }
            base.SetCompleteSuccessFloor(reachFloorId);
            return(0);
        }
Example #10
0
 // Token: 0x06006DE4 RID: 28132 RVA: 0x001EABA0 File Offset: 0x001E8DA0
 public LuaExportHelper(BattleReward owner)
 {
     this.m_owner = owner;
 }