コード例 #1
0
        public void StatisticActorInfo(HurtEventResultInfo prm)
        {
            ActorValueStatistic objValueStatistic = this.actorHero.handle.ValueComponent.ObjValueStatistic;

            if (objValueStatistic != null)
            {
                objValueStatistic.iActorLvl              = Math.Max(objValueStatistic.iActorLvl, prm.hurtInfo.attackInfo.iActorLvl);
                objValueStatistic.iActorATT              = Math.Max(objValueStatistic.iActorATT, prm.hurtInfo.attackInfo.iActorATT);
                objValueStatistic.iActorINT              = Math.Max(objValueStatistic.iActorINT, prm.hurtInfo.attackInfo.iActorINT);
                objValueStatistic.iActorMaxHp            = Math.Max(objValueStatistic.iActorMaxHp, prm.hurtInfo.attackInfo.iActorMaxHp);
                objValueStatistic.iActorMinHp            = Math.Max(objValueStatistic.iActorMinHp, prm.src.handle.ValueComponent.actorHp);
                objValueStatistic.iDEFStrike             = Math.Max(objValueStatistic.iDEFStrike, prm.hurtInfo.attackInfo.iDEFStrike);
                objValueStatistic.iRESStrike             = Math.Max(objValueStatistic.iRESStrike, prm.hurtInfo.attackInfo.iRESStrike);
                objValueStatistic.iFinalHurt             = Math.Max(objValueStatistic.iFinalHurt, prm.hurtInfo.attackInfo.iFinalHurt);
                objValueStatistic.iCritStrikeRate        = Math.Max(objValueStatistic.iCritStrikeRate, prm.hurtInfo.attackInfo.iCritStrikeRate);
                objValueStatistic.iCritStrikeValue       = Math.Max(objValueStatistic.iCritStrikeValue, prm.hurtInfo.attackInfo.iCritStrikeValue);
                objValueStatistic.iReduceCritStrikeRate  = Math.Max(objValueStatistic.iReduceCritStrikeRate, prm.hurtInfo.attackInfo.iReduceCritStrikeRate);
                objValueStatistic.iReduceCritStrikeValue = Math.Max(objValueStatistic.iReduceCritStrikeValue, prm.hurtInfo.attackInfo.iReduceCritStrikeValue);
                objValueStatistic.iCritStrikeEff         = Math.Max(objValueStatistic.iCritStrikeEff, prm.hurtInfo.attackInfo.iCritStrikeEff);
                objValueStatistic.iPhysicsHemophagiaRate = Math.Max(objValueStatistic.iPhysicsHemophagiaRate, prm.hurtInfo.attackInfo.iPhysicsHemophagiaRate);
                objValueStatistic.iMagicHemophagiaRate   = Math.Max(objValueStatistic.iMagicHemophagiaRate, prm.hurtInfo.attackInfo.iMagicHemophagiaRate);
                objValueStatistic.iPhysicsHemophagia     = Math.Max(objValueStatistic.iPhysicsHemophagia, prm.hurtInfo.attackInfo.iPhysicsHemophagia);
                objValueStatistic.iMagicHemophagia       = Math.Max(objValueStatistic.iMagicHemophagia, prm.hurtInfo.attackInfo.iMagicHemophagia);
                objValueStatistic.iHurtOutputRate        = Math.Max(objValueStatistic.iHurtOutputRate, prm.hurtInfo.attackInfo.iHurtOutputRate);
            }
        }
コード例 #2
0
 public override void Init()
 {
     base.Init();
     if (this.mActorValue == null)
     {
         this.mActorValue = new PropertyHelper();
         this.mActorValue.Init(ref base.actor.TheActorMeta);
     }
     if (this.ObjValueStatistic == null)
     {
         this.ObjValueStatistic = new ActorValueStatistic();
     }
     this.actorHp = this.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_MAXHP].totalValue;
     this.actorEp = this.mActorValue[RES_FUNCEFT_TYPE.RES_PROPERTY_MAXEP].totalValue;
 }
コード例 #3
0
ファイル: ValueProperty.cs プロジェクト: isoundy000/wzry-1
 public override void Init()
 {
     base.Init();
     if (this.mActorValue == null)
     {
         this.mActorValue = new PropertyHelper();
         this.mActorValue.Init(ref base.actor.TheActorMeta);
     }
     if (this.ObjValueStatistic == null)
     {
         this.ObjValueStatistic = new ActorValueStatistic();
     }
     this.actorHp = 0;
     this.actorEp = 0;
     this.SetHpAndEpToInitialValue(0x2710, 0x2710);
 }
コード例 #4
0
 private void ClearVariables()
 {
     this._nObjCurHp                  = 1;
     this._nObjCurEp                  = 1;
     this.mActorValue                 = null;
     this.nHpRecoveryTick             = 0;
     this.nEpRecoveryTick             = 0;
     this._soulLevel                  = 1;
     this._soulExp                    = 0;
     this._soulMaxExp                 = 0;
     this.HpChgEvent                  = null;
     this.ObjValueStatistic           = null;
     this.m_goldCoinInBattle          = 0;
     this.m_goldCoinIncomeInBattle    = 0;
     this.m_MaxGoldCoinIncomeInBattle = 0;
 }
コード例 #5
0
        public override void Init()
        {
            base.Init();
            if (this.mActorValue == null)
            {
                this.mActorValue = new PropertyHelper();
                this.mActorValue.Init(ref this.actor.TheActorMeta);
            }
            if (this.ObjValueStatistic == null)
            {
                this.ObjValueStatistic = new ActorValueStatistic();
            }
            this.mEnergy = Singleton <EnergyCreater <BaseEnergyLogic, EnergyAttribute> > .GetInstance().Create((int)this.mActorValue.EnergyType);

            if (this.mEnergy == null)
            {
                this.mEnergy = new NoEnergy();
            }
            this.mEnergy.Init(this.actorPtr);
            this.actorHp = 0;
            this.actorEp = 0;
            this.SetHpAndEpToInitialValue(10000, 10000);
        }