示例#1
0
 public override void Fight()
 {
     base.Fight();
     if (this.cfgInfo.iLeftBattleFrame > 0)
     {
         this.m_battle_cool_ticks = this.cfgInfo.iLeftBattleFrame;
     }
     else
     {
         this.m_battle_cool_ticks = 30;
     }
     if (!Singleton <FrameSynchr> .GetInstance().bActive)
     {
         this.m_battle_cool_ticks *= 2;
     }
     this._inBattleCoolTick = this.m_battle_cool_ticks;
     if (this.cfgInfo.iDropProbability == 101)
     {
         BattleMisc.BossRoot = this.actorPtr;
     }
     if (FogOfWar.enable && this.actor.HorizonMarker != null && this.GetActorSubType() == 1)
     {
         this.actor.HorizonMarker.SightRadius = Horizon.QuerySoldierSightRadius();
     }
 }
        public override void Fight()
        {
            base.Fight();
            COM_PLAYERCAMP actorCamp = this.actor.TheActorMeta.ActorCamp;

            if (Singleton <BattleLogic> .GetInstance().organControl.HadSoldierAddByOrgan(actorCamp))
            {
                this.actor.ValueComponent.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_MAXHP].addRatio += Singleton <BattleLogic> .GetInstance().organControl.GetSoldierMaxHpAddByOrgan(actorCamp);

                this.actor.ValueComponent.actorHp = this.actor.ValueComponent.actorHpTotal;
                this.actor.ValueComponent.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_PHYATKPT].addRatio += Singleton <BattleLogic> .GetInstance().organControl.GetSoldierPhycAttackAddByOrgan(actorCamp);

                this.actor.ValueComponent.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_MGCATKPT].addRatio += Singleton <BattleLogic> .GetInstance().organControl.GetSoldierMagcAttackAddByOrgan(actorCamp);

                this.actor.ValueComponent.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_PHYDEFPT].addRatio += Singleton <BattleLogic> .GetInstance().organControl.GetSoldierPhycDefendAddByOrgan(actorCamp);

                this.actor.ValueComponent.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_MGCDEFPT].addRatio += Singleton <BattleLogic> .GetInstance().organControl.GetSoldierMagcDefendAddByOrgan(actorCamp);

                float num = 1f + (float)Singleton <BattleLogic> .GetInstance().organControl.GetSoldierShapeScaleAddByOrgan(actorCamp) / 10000f;

                MonsterWrapper._scaleCache.x      = num;
                MonsterWrapper._scaleCache.y      = num;
                MonsterWrapper._scaleCache.z      = num;
                this.actor.myTransform.localScale = MonsterWrapper._scaleCache;
                this.actor.HudControl.hudHeight   = Mathf.RoundToInt((float)this.actor.HudControl.hudHeight * num);
            }
            if (this.cfgInfo.iLeftBattleFrame > 0)
            {
                this.m_battle_cool_ticks = this.cfgInfo.iLeftBattleFrame;
            }
            else
            {
                this.m_battle_cool_ticks = 30;
            }
            if (!Singleton <FrameSynchr> .GetInstance().bActive)
            {
                this.m_battle_cool_ticks *= 2;
            }
            this._inBattleCoolTick = this.m_battle_cool_ticks;
            if (this.cfgInfo.iDropProbability == 101)
            {
                BattleMisc.BossRoot = this.actorPtr;
            }
            if (FogOfWar.enable && this.actor.HorizonMarker != null && this.GetActorSubType() == 1)
            {
                this.actor.HorizonMarker.SightRadius = Horizon.QuerySoldierSightRadius();
            }
        }