コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #4
0
ファイル: SkillAttr.cs プロジェクト: yh821/Zombie
        /// <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;
        }
コード例 #5
0
ファイル: SkillAttr.cs プロジェクト: yh821/Zombie
        /// <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;
        }
コード例 #6
0
ファイル: SkillAttr.cs プロジェクト: yh821/Zombie
        /// <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;
        }