Exemplo n.º 1
0
        private Weapon GetWeaponFromType(WeaponType?wtypenullable, WeaponAffix waffix)
        {
            var wtype = (WeaponType)wtypenullable;

            switch (wtype)
            {
            case WeaponType.Blade:
                return(new Blade(wtype, waffix));

            case WeaponType.Blood:
                return(new Blood(wtype, waffix));

            case WeaponType.Chaos:
                return(new Chaos(wtype, waffix));

            case WeaponType.Elemental:
                return(new Elemental(wtype, waffix));

            case WeaponType.Fist:
                return(new Fist(wtype, waffix));

            case WeaponType.Hammer:
                return(new Hammer(wtype, waffix));

            case WeaponType.Pistol:
                return(new Pistol(wtype, waffix));

            case WeaponType.Rifle:
                return(new Rifle(wtype, waffix));

            case WeaponType.Shotgun:
                return(new Shotgun(wtype, waffix));
            }

            return(null);
        }
Exemplo n.º 2
0
 public Hammer(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     _maxGimickResource = 100;
 }
Exemplo n.º 3
0
 public Shotgun(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     _maxGimickResource = 6;
     _gimickResource    = 6;
 }
Exemplo n.º 4
0
 public Pistol(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     LeftChamber          = Chamber.White;
     RightChamber         = Chamber.White;
     ChamberLockTimeStamp = 0;
 }
Exemplo n.º 5
0
 public Elemental(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     _maxGimickResource = 100;
 }
Exemplo n.º 6
0
 public Chaos(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     _maxGimickResource = 8;
 }
Exemplo n.º 7
0
 public Rifle(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     _maxGimickResource = 1;
 }
Exemplo n.º 8
0
 public Blade(WeaponType wtype, WeaponAffix waffix) : base(wtype, waffix)
 {
     _maxGimickResource = 5;
 }
Exemplo n.º 9
0
 public Weapon(WeaponType wtype, WeaponAffix waffix)
 {
     WeaponType  = wtype;
     WeaponAffix = waffix;
 }