Exemple #1
0
 /// <summary>
 /// 减少属性
 /// </summary>
 public void Copy(SkillAttr c)
 {
     this.MoveSpeed -= c.MoveSpeed;
     this.HpLmt      = c.HpLmt;
     this.Atk        = c.Atk;
     this.Defence    = c.Defence;
 }
Exemple #2
0
 /// <summary>
 /// 减少属性
 /// </summary>
 public void Minus(SkillAttr m)
 {
     this.MoveSpeed -= m.MoveSpeed;
     this.HpLmt     -= m.HpLmt;
     this.Atk       -= m.Atk;
     this.Defence   -= m.Defence;
 }
Exemple #3
0
 /// <summary>
 /// 增加属性
 /// </summary>
 public void Add(SkillAttr a)
 {
     this.MoveSpeed += a.MoveSpeed;
     this.HpLmt     += a.HpLmt;
     this.Atk       += a.Atk;
     this.Defence   += a.Defence;
 }
Exemple #4
0
        /// <summary>
        /// 复制属性
        /// </summary>
        public void Copy(SkillAttr c)
        {
            this.MoveSpeed   = c.MoveSpeed;
            this.HpLmt       = c.HpLmt;
            this.Atk         = c.Atk;
            this.Defence     = c.Defence;
            this.AttackDist  = c.AttackDist;
            this.AtkDuration = c.AtkDuration;
            this.FindDist    = c.FindDist;
            this.LostDist    = c.LostDist;
            this.Food        = c.Food;
            this.Bullet      = c.Bullet;

            this.HitRatio    = c.HitRatio;
            this.DodgeRatio  = c.DodgeRatio;
            this.CritRatio   = c.CritRatio;
            this.DecritRatio = c.DecritRatio;
        }
Exemple #5
0
        /// <summary>
        /// 减少属性
        /// </summary>
        public void Minus(SkillAttr m)
        {
            this.MoveSpeed   -= m.MoveSpeed;
            this.HpLmt       -= m.HpLmt;
            this.Atk         -= m.Atk;
            this.Defence     -= m.Defence;
            this.AttackDist  -= m.AttackDist;
            this.AtkDuration -= m.AtkDuration;
            this.FindDist    -= m.FindDist;
            this.LostDist    -= m.LostDist;
            this.Food        -= m.Food;
            this.Bullet      -= m.Bullet;

            this.HitRatio    -= m.HitRatio;
            this.DodgeRatio  -= m.DodgeRatio;
            this.CritRatio   -= m.CritRatio;
            this.DecritRatio -= m.DecritRatio;
        }
Exemple #6
0
        /// <summary>
        /// 增加属性
        /// </summary>
        public void Add(SkillAttr a)
        {
            this.MoveSpeed   += a.MoveSpeed;
            this.HpLmt       += a.HpLmt;
            this.Atk         += a.Atk;
            this.Defence     += a.Defence;
            this.AttackDist  += a.AttackDist;
            this.AtkDuration += a.AtkDuration;
            this.FindDist    += a.FindDist;
            this.LostDist    += a.LostDist;
            this.Food        += a.Food;
            this.Bullet      += a.Bullet;

            this.HitRatio    += a.HitRatio;
            this.DodgeRatio  += a.DodgeRatio;
            this.CritRatio   += a.CritRatio;
            this.DecritRatio += a.DecritRatio;
        }