Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }