Пример #1
0
        public void RecoverSkillSlot(SkillSlotType _slotType)
        {
            SkillSlot slot = null;

            if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out slot))
            {
                if (this.changeSkillSlot[(int)_slotType].changeCount == 1)
                {
                    int initSkillID = this.changeSkillSlot[(int)_slotType].initSkillID;
                    int curSkillCD  = (int)slot.CurSkillCD;
                    int skillLevel  = slot.GetSkillLevel();
                    slot.CancelUseSkill();
                    this.sourceActor.handle.SkillControl.InitSkillSlot((int)_slotType, initSkillID, 0);
                    if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out slot))
                    {
                        slot.SetSkillLevel(skillLevel);
                        slot.CurSkillCD = curSkillCD;
                        slot.IsCDReady  = curSkillCD == 0;
                        DefaultSkillEventParam param = new DefaultSkillEventParam(_slotType, 0);
                        Singleton <GameSkillEventSys> .GetInstance().SendEvent <DefaultSkillEventParam>(GameSkillEventDef.Event_UpdateSkillUI, this.sourceActor, ref param, GameSkillEventChannel.Channel_HostCtrlActor);
                    }
                    this.changeSkillSlot[(int)_slotType].initSkillID   = 0;
                    this.changeSkillSlot[(int)_slotType].changeSkillID = 0;
                }
                this.changeSkillSlot[(int)_slotType].changeCount--;
            }
        }
        public void RecoverSkillSlot(SkillSlotType _slotType)
        {
            SkillSlot skillSlot = null;

            if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out skillSlot))
            {
                if (this.changeSkillSlot[(int)_slotType].changeCount == 1)
                {
                    int initSkillID        = this.changeSkillSlot[(int)_slotType].initSkillID;
                    int initPassiveSkillID = this.changeSkillSlot[(int)_slotType].initPassiveSkillID;
                    int num        = skillSlot.CurSkillCD;
                    int skillLevel = skillSlot.GetSkillLevel();
                    skillSlot.DestoryIndicatePrefab();
                    this.sourceActor.handle.SkillControl.InitSkillSlot((int)_slotType, initSkillID, initPassiveSkillID);
                    if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out skillSlot))
                    {
                        skillSlot.SetSkillLevel(skillLevel);
                        skillSlot.CurSkillCD = num;
                        skillSlot.IsCDReady  = (num == 0);
                        DefaultSkillEventParam defaultSkillEventParam = new DefaultSkillEventParam(_slotType, 0, this.sourceActor);
                        Singleton <GameSkillEventSys> .GetInstance().SendEvent <DefaultSkillEventParam>(GameSkillEventDef.Event_UpdateSkillUI, this.sourceActor, ref defaultSkillEventParam, GameSkillEventChannel.Channel_HostCtrlActor);
                    }
                    this.changeSkillSlot[(int)_slotType].initSkillID        = 0;
                    this.changeSkillSlot[(int)_slotType].changeSkillID      = 0;
                    this.changeSkillSlot[(int)_slotType].initPassiveSkillID = 0;
                }
                ChangeSkillSlot[] array = this.changeSkillSlot;
                array[(int)_slotType].changeCount = array[(int)_slotType].changeCount - 1;
            }
        }
Пример #3
0
        public void ChangeSkillSlot(SkillSlotType _slotType, int _skillID, int _orgSkillID = 0)
        {
            int       skillID = 0;
            SkillSlot slot    = null;

            if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out slot))
            {
                int ornamentSwitchCD = 0;
                if (_slotType == SkillSlotType.SLOT_SKILL_7)
                {
                    SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

                    if (curLvelContext != null)
                    {
                        ornamentSwitchCD = curLvelContext.m_ornamentSwitchCD;
                    }
                }
                else
                {
                    ornamentSwitchCD = (int)slot.CurSkillCD;
                }
                int skillLevel = slot.GetSkillLevel();
                if (slot.SkillObj != null)
                {
                    skillID = slot.SkillObj.SkillID;
                }
                if ((_orgSkillID == 0) || (skillID == _orgSkillID))
                {
                    slot.DestoryIndicatePrefab();
                    this.sourceActor.handle.SkillControl.InitSkillSlot((int)_slotType, _skillID, 0);
                    if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out slot))
                    {
                        slot.CurSkillCD = ornamentSwitchCD;
                        slot.IsCDReady  = ornamentSwitchCD == 0;
                        slot.SetSkillLevel(skillLevel);
                        DefaultSkillEventParam param = new DefaultSkillEventParam(_slotType, 0, this.sourceActor);
                        Singleton <GameSkillEventSys> .GetInstance().SendEvent <DefaultSkillEventParam>(GameSkillEventDef.Event_UpdateSkillUI, this.sourceActor, ref param, GameSkillEventChannel.Channel_HostCtrlActor);

                        if (this.changeSkillSlot[(int)_slotType].changeCount == 0)
                        {
                            this.changeSkillSlot[(int)_slotType].initSkillID = skillID;
                        }
                        this.changeSkillSlot[(int)_slotType].changeSkillID = _skillID;
                        this.changeSkillSlot[(int)_slotType].changeCount++;
                    }
                }
            }
        }
Пример #4
0
        public void ResetSkillLevel()
        {
            PoolObjHandle <ActorRoot> captain = Singleton <GamePlayerCenter> .instance.GetHostPlayer().Captain;

            int length = this.SkillSlotArray.Length;

            for (int i = 0; i < length; i++)
            {
                SkillSlot slot = this.SkillSlotArray[i];
                if ((slot != null) && (((slot.SlotType == SkillSlotType.SLOT_SKILL_1) || (slot.SlotType == SkillSlotType.SLOT_SKILL_2)) || (slot.SlotType == SkillSlotType.SLOT_SKILL_3)))
                {
                    slot.SetSkillLevel(0);
                    if ((captain == base.actorPtr) && (Singleton <CBattleSystem> .GetInstance().FightForm != null))
                    {
                        Singleton <CBattleSystem> .instance.FightForm.ClearSkillLvlStates(i);
                    }
                }
            }
            if ((captain == base.actorPtr) && (Singleton <CBattleSystem> .GetInstance().FightForm != null))
            {
                Singleton <CBattleSystem> .instance.FightForm.ResetSkillButtonManager(base.actorPtr);
            }
            this.m_iSkillPoint = 0;
        }
        public void ResetSkillLevel()
        {
            PoolObjHandle <ActorRoot> captain = Singleton <GamePlayerCenter> .instance.GetHostPlayer().Captain;

            int num = this.SkillSlotArray.Length;

            for (int i = 0; i < num; i++)
            {
                SkillSlot skillSlot = this.SkillSlotArray[i];
                if (skillSlot != null && (skillSlot.SlotType == SkillSlotType.SLOT_SKILL_1 || skillSlot.SlotType == SkillSlotType.SLOT_SKILL_2 || skillSlot.SlotType == SkillSlotType.SLOT_SKILL_3))
                {
                    skillSlot.SetSkillLevel(0);
                    if (captain == this.actorPtr && Singleton <CBattleSystem> .GetInstance().FightForm != null)
                    {
                        Singleton <CBattleSystem> .instance.FightForm.ClearSkillLvlStates(i);
                    }
                }
            }
            if (captain == this.actorPtr && Singleton <CBattleSystem> .GetInstance().FightForm != null)
            {
                Singleton <CBattleSystem> .instance.FightForm.ResetSkillButtonManager(this.actorPtr, false, SkillSlotType.SLOT_SKILL_COUNT);
            }
            this.m_iSkillPoint = 0;
        }
Пример #6
0
        public override void Init()
        {
            base.Init();
            this.talentSystem = new TalentSystem();
            this.talentSystem.Init(base.actorPtr);
            this.stSkillStat = new CSkillStat();
            if (this.stSkillStat != null)
            {
                this.stSkillStat.Initialize(base.actorPtr);
                this.InitRandomSkill();
                this.InitPassiveSkill();
                IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.StaticBattleDataProvider);

                IGameActorDataProvider provider2 = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.ServerDataProvider);

                ActorStaticSkillData skillData = new ActorStaticSkillData();
                for (int i = 0; i < 8; i++)
                {
                    if (i == 6)
                    {
                        SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

                        if (curLvelContext.IsGameTypeGuide())
                        {
                            if (curLvelContext.m_mapID == CBattleGuideManager.GuideLevelID5v5)
                            {
                                goto Label_00D8;
                            }
                            continue;
                        }
                        if (!curLvelContext.IsMobaModeWithOutGuide() || (curLvelContext.m_pvpPlayerNum != 10))
                        {
                            continue;
                        }
                    }
Label_00D8:
                    if (i == 7)
                    {
                        SLevelContext context2 = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

                        if (!context2.m_bEnableOrnamentSlot || (context2.m_ornamentSkillId <= 0))
                        {
                            continue;
                        }
                    }
                    if ((((i == 4) || (i == 6)) || (i == 7)) && (base.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero))
                    {
                        SLevelContext context3 = Singleton <BattleLogic> .instance.GetCurLvelContext();

                        if ((context3 == null) || (context3.m_mapID <= 0))
                        {
                            continue;
                        }
                        int extraSkillId = context3.m_extraSkillId;
                        switch (i)
                        {
                        case 6:
                        {
                            extraSkillId = context3.m_extraSkill2Id;
                            if (extraSkillId > 0)
                            {
                                break;
                            }
                            continue;
                        }

                        case 7:
                            extraSkillId = context3.m_ornamentSkillId;
                            break;

                        default:
                            this.CreateTalent(context3.m_extraPassiveSkillId);
                            break;
                        }
                        this.InitSkillSlot(i, extraSkillId, 0);
                        SkillSlot slot = this.SkillSlotArray[i];
                        if (slot != null)
                        {
                            slot.SetSkillLevel(1);
                        }
                        continue;
                    }
                    if (actorDataProvider.GetActorStaticSkillData(ref base.actor.TheActorMeta, (ActorSkillSlot)i, ref skillData))
                    {
                        this.InitSkillSlot(i, skillData.SkillId, skillData.PassiveSkillId);
                        if (((i > 3) || (i < 1)) || (!Singleton <BattleLogic> .GetInstance().m_GameInfo.gameContext.levelContext.IsSoulGrow() || (base.actor.TheActorMeta.ActorType != ActorTypeDef.Actor_Type_Hero)))
                        {
                            SkillSlot slot2 = this.SkillSlotArray[i];
                            if (slot2 != null)
                            {
                                slot2.SetSkillLevel(1);
                            }
                        }
                    }
                }
                uint skillID = 0;
                if (provider2.GetActorServerCommonSkillData(ref base.actor.TheActorMeta, out skillID))
                {
                    int num5 = 5;
                    if (skillID != 0)
                    {
                        this.InitSkillSlot(num5, (int)skillID, 0);
                        SkillSlot slot3 = this.SkillSlotArray[num5];
                        if (slot3 != null)
                        {
                            slot3.SetSkillLevel(1);
                        }
                    }
                }
                if (base.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero)
                {
                    this.SkillUseCache = new SkillCache();
                }
            }
        }
Пример #7
0
        public override void Init()
        {
            base.Init();
            this.talentSystem = new TalentSystem();
            this.talentSystem.Init(base.actorPtr);
            this.stSkillStat = new CSkillStat();
            if (this.stSkillStat != null)
            {
                this.stSkillStat.Initialize(base.actorPtr);
                this.InitRandomSkill();
                IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.StaticBattleDataProvider);

                IGameActorDataProvider provider2 = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.ServerDataProvider);

                ActorStaticSkillData skillData = new ActorStaticSkillData();
                for (int i = 0; i < 7; i++)
                {
                    ResDT_LevelCommonInfo info4;
                    if (i == 6)
                    {
                        SLevelContext context = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

                        if (context.GameType == COM_GAME_TYPE.COM_SINGLE_GAME_OF_GUIDE)
                        {
                            if (context.iLevelID == CBattleGuideManager.GuideLevelID5v5)
                            {
                                goto Label_00DF;
                            }
                            continue;
                        }
                        ResDT_LevelCommonInfo info = null;
                        info = CLevelCfgLogicManager.FindLevelConfigMultiGame(context.iLevelID);
                        if ((info == null) || (info.bMaxAcntNum != 10))
                        {
                            continue;
                        }
                    }
Label_00DF:
                    if (((i != 4) && (i != 6)) || (base.actor.TheActorMeta.ActorType != ActorTypeDef.Actor_Type_Hero))
                    {
                        goto Label_0284;
                    }
                    SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

                    if (curLvelContext == null)
                    {
                        continue;
                    }
                    int iLevelID = curLvelContext.iLevelID;
                    if (iLevelID <= 0)
                    {
                        continue;
                    }
                    if (Singleton <LobbyLogic> .instance.inMultiGame)
                    {
                        goto Label_0214;
                    }
                    ResLevelCfgInfo       outLevelCfg     = null;
                    ResDT_LevelCommonInfo outLevelComInfo = null;
                    CLevelCfgLogicManager.FindLevelConfigSingleGame(iLevelID, out outLevelCfg, out outLevelComInfo);
                    if (outLevelComInfo == null)
                    {
                        goto Label_01AD;
                    }
                    int iExtraSkillId = outLevelComInfo.iExtraSkillId;
                    if (i == 6)
                    {
                        iExtraSkillId = outLevelComInfo.iExtraSkill2Id;
                        if (iExtraSkillId > 0)
                        {
                            goto Label_0185;
                        }
                        continue;
                    }
                    this.CreateTalent(outLevelComInfo.iExtraPassiveSkillId);
Label_0185:
                    this.InitSkillSlot(i, iExtraSkillId, 0);
                    SkillSlot slot = this.SkillSlotArray[i];
                    if (slot != null)
                    {
                        slot.SetSkillLevel(1);
                    }
                    continue;
Label_01AD:
                    if (outLevelCfg == null)
                    {
                        continue;
                    }
                    int num4 = outLevelCfg.iExtraSkillId;
                    if (i == 6)
                    {
                        num4 = outLevelCfg.iExtraSkill2Id;
                        if (num4 > 0)
                        {
                            goto Label_01EC;
                        }
                        continue;
                    }
                    this.CreateTalent(outLevelCfg.iExtraPassiveSkillId);
Label_01EC:
                    this.InitSkillSlot(i, num4, 0);
                    SkillSlot slot2 = this.SkillSlotArray[i];
                    if (slot2 != null)
                    {
                        slot2.SetSkillLevel(1);
                    }
                    continue;
Label_0214:
                    info4 = CLevelCfgLogicManager.FindLevelConfigMultiGame(iLevelID);
                    if (info4 == null)
                    {
                        continue;
                    }
                    int num5 = info4.iExtraSkillId;
                    if (i == 6)
                    {
                        num5 = info4.iExtraSkill2Id;
                        if (num5 > 0)
                        {
                            goto Label_025C;
                        }
                        continue;
                    }
                    this.CreateTalent(info4.iExtraPassiveSkillId);
Label_025C:
                    this.InitSkillSlot(i, num5, 0);
                    SkillSlot slot3 = this.SkillSlotArray[i];
                    if (slot3 != null)
                    {
                        slot3.SetSkillLevel(1);
                    }
                    continue;
Label_0284:
                    if (actorDataProvider.GetActorStaticSkillData(ref base.actor.TheActorMeta, (ActorSkillSlot)i, ref skillData))
                    {
                        this.InitSkillSlot(i, skillData.SkillId, skillData.PassiveSkillId);
                        if (((i > 3) || (i < 1)) || (!Singleton <BattleLogic> .GetInstance().m_GameInfo.gameContext.IsSoulGrow() || (base.actor.TheActorMeta.ActorType != ActorTypeDef.Actor_Type_Hero)))
                        {
                            SkillSlot slot4 = this.SkillSlotArray[i];
                            if (slot4 != null)
                            {
                                slot4.SetSkillLevel(1);
                            }
                        }
                    }
                }
                uint skillID = 0;
                if (provider2.GetActorServerCommonSkillData(ref base.actor.TheActorMeta, out skillID))
                {
                    int num7 = 5;
                    if (skillID != 0)
                    {
                        this.InitSkillSlot(num7, (int)skillID, 0);
                        SkillSlot slot5 = this.SkillSlotArray[num7];
                        if (slot5 != null)
                        {
                            slot5.SetSkillLevel(1);
                        }
                    }
                }
                if (base.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero)
                {
                    this.SkillUseCache = new SkillCache();
                }
            }
        }
        public override void Init()
        {
            base.Init();
            this.talentSystem = new TalentSystem();
            this.talentSystem.Init(this.actorPtr);
            this.stSkillStat = new CSkillStat();
            if (this.stSkillStat == null)
            {
                return;
            }
            this.stSkillStat.Initialize(this.actorPtr);
            this.InitRandomSkill();
            this.InitPassiveSkill();
            IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.StaticBattleDataProvider);

            IGameActorDataProvider actorDataProvider2 = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.ServerDataProvider);

            ActorStaticSkillData actorStaticSkillData = default(ActorStaticSkillData);

            this.ornamentFirstSwitchCdEftTime = Singleton <BattleLogic> .GetInstance().GetCurLvelContext().m_ornamentFirstSwitchCdEftTime;

            this.RotateBodyBulletFindEnemyLogicFrameTick = 0uL;
            int i = 0;

            while (i < 8)
            {
                if (i != 6)
                {
                    goto IL_104;
                }
                SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

                if (curLvelContext.IsGameTypeGuide())
                {
                    if (CBattleGuideManager.Is5v5GuideLevel(curLvelContext.m_mapID))
                    {
                        goto IL_104;
                    }
                }
                else if (curLvelContext.IsMobaModeWithOutGuide() && curLvelContext.m_pvpPlayerNum == 10)
                {
                    goto IL_104;
                }
IL_FB:
                i++;
                continue;
IL_104:
                if ((i == 4 || i == 6 || i == 7) && this.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero)
                {
                    SLevelContext curLvelContext2 = Singleton <BattleLogic> .instance.GetCurLvelContext();

                    if (curLvelContext2 != null)
                    {
                        int mapID = curLvelContext2.m_mapID;
                        if (mapID > 0)
                        {
                            int num = curLvelContext2.m_extraSkillId;
                            if (i == 6)
                            {
                                num = curLvelContext2.m_extraSkill2Id;
                                if (num <= 0)
                                {
                                    goto IL_FB;
                                }
                            }
                            else if (i == 7)
                            {
                                if (!curLvelContext2.m_bEnableOrnamentSlot || curLvelContext2.m_ornamentSkillId <= 0)
                                {
                                    goto IL_FB;
                                }
                                num = curLvelContext2.m_ornamentSkillId;
                            }
                            else
                            {
                                this.CreateTalent(curLvelContext2.m_extraPassiveSkillId, SKILL_USE_FROM_TYPE.SKILL_USE_FROM_TYPE_SKILL, 0u);
                            }
                            this.InitSkillSlot(i, num, 0);
                            SkillSlot skillSlot = this.SkillSlotArray[i];
                            if (skillSlot != null)
                            {
                                skillSlot.SetSkillLevel(1);
                            }
                        }
                    }
                    goto IL_FB;
                }
                if (!actorDataProvider.GetActorStaticSkillData(ref this.actor.TheActorMeta, (ActorSkillSlot)i, ref actorStaticSkillData))
                {
                    goto IL_FB;
                }
                this.InitSkillSlot(i, actorStaticSkillData.SkillId, actorStaticSkillData.PassiveSkillId);
                if (i <= 3 && i >= 1 && Singleton <BattleLogic> .GetInstance().m_LevelContext.IsSoulGrow() && (this.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero || this.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Call))
                {
                    goto IL_FB;
                }
                SkillSlot skillSlot2 = this.SkillSlotArray[i];
                if (skillSlot2 == null)
                {
                    goto IL_FB;
                }
                skillSlot2.SetSkillLevel(1);
                goto IL_FB;
            }
            uint num2 = 0u;

            if (actorDataProvider2.GetActorServerCommonSkillData(ref this.actor.TheActorMeta, out num2))
            {
                int num3 = 5;
                if (num2 != 0u)
                {
                    this.InitSkillSlot(num3, (int)num2, 0);
                    SkillSlot skillSlot3 = this.SkillSlotArray[num3];
                    if (skillSlot3 != null)
                    {
                        skillSlot3.SetSkillLevel(1);
                    }
                }
            }
            if (this.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero || this.actor.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Call)
            {
                this.SkillUseCache = new SkillCache();
            }
        }
        public void ChangeSkillSlot(SkillSlotType _slotType, int _skillID, int _orgSkillID = 0)
        {
            int       num       = 0;
            int       num2      = 0;
            SkillSlot skillSlot = null;

            if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out skillSlot))
            {
                int num3 = 0;
                if (_slotType == SkillSlotType.SLOT_SKILL_7)
                {
                    SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

                    if (curLvelContext != null)
                    {
                        if ((long)this.sourceActor.handle.SkillControl.ornamentFirstSwitchCdEftTime >= (long)Singleton <FrameSynchr> .instance.LogicFrameTick)
                        {
                            num3 = curLvelContext.m_ornamentFirstSwitchCd;
                        }
                        else
                        {
                            num3 = curLvelContext.m_ornamentSwitchCD;
                        }
                        this.sourceActor.handle.SkillControl.ornamentFirstSwitchCdEftTime = 0;
                    }
                }
                else
                {
                    num3 = skillSlot.CurSkillCD;
                }
                int skillLevel = skillSlot.GetSkillLevel();
                if (skillSlot.SkillObj != null)
                {
                    num = skillSlot.SkillObj.SkillID;
                }
                if (skillSlot.PassiveSkillObj != null)
                {
                    num2 = skillSlot.PassiveSkillObj.SkillID;
                }
                if (_orgSkillID != 0 && num != _orgSkillID)
                {
                    return;
                }
                skillSlot.DestoryIndicatePrefab();
                this.sourceActor.handle.SkillControl.InitSkillSlot((int)_slotType, _skillID, num2);
                if (this.sourceActor.handle.SkillControl.TryGetSkillSlot(_slotType, out skillSlot))
                {
                    skillSlot.CurSkillCD = num3;
                    skillSlot.IsCDReady  = (num3 == 0);
                    skillSlot.SetSkillLevel(skillLevel);
                    DefaultSkillEventParam defaultSkillEventParam = new DefaultSkillEventParam(_slotType, 0, this.sourceActor);
                    Singleton <GameSkillEventSys> .GetInstance().SendEvent <DefaultSkillEventParam>(GameSkillEventDef.Event_UpdateSkillUI, this.sourceActor, ref defaultSkillEventParam, GameSkillEventChannel.Channel_HostCtrlActor);

                    if (this.changeSkillSlot[(int)_slotType].changeCount == 0)
                    {
                        this.changeSkillSlot[(int)_slotType].initSkillID        = num;
                        this.changeSkillSlot[(int)_slotType].initPassiveSkillID = num2;
                    }
                    this.changeSkillSlot[(int)_slotType].changeSkillID = _skillID;
                    ChangeSkillSlot[] array = this.changeSkillSlot;
                    array[(int)_slotType].changeCount = array[(int)_slotType].changeCount + 1;
                }
            }
        }