Example #1
0
        public WeaponProperty GetWeaponProperty()
        {
            WeaponProperty wp = new WeaponProperty();

            wp.Bulletmax  = Bulletmax;
            wp.Bullet     = Bullet;
            wp.Power      = Power;
            wp.Limitcycle = Limitcycle;
            wp.Accurate   = Accurate;
            wp.Weight     = Weight;
            wp.Stability  = Stability;
            wp.Penetrate  = Penetrate;
            wp.Scope      = Scope;
            return(wp);
        }
Example #2
0
        public WeaponProperty Cut(WeaponProperty b)
        {
            WeaponProperty c = new WeaponProperty();

            c.Bullet    = Bullet - b.Bullet;
            c.Bulletmax = Bulletmax - b.Bulletmax;

            c.Power      = CutValue(Power, b.Power);
            c.Limitcycle = CutValue(Limitcycle, b.Limitcycle);
            c.Accurate   = CutValue(Accurate, b.Accurate);
            c.Weight     = CutValue(Weight, b.Weight);
            c.Stability  = CutValue(Stability, b.Stability);
            c.Penetrate  = CutValue(Penetrate, b.Penetrate);
            c.Scope      = CutValue(Scope, b.Scope);
            return(c);
        }