示例#1
0
 public IronVambraces(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(3, 9);
     _isNatural    = false;
     _name         = "Iron Vambraces";
     _slot         = InventorySlotId.VAMBRACES;
 }
示例#2
0
 public SteelChestPiece(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(7, 14);
     _isNatural    = false;
     _name         = "Steel ChestPiece";
     _slot         = InventorySlotId.CHESTPIECE;
 }
示例#3
0
 public BronzeHelmet(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(1, 5);
     _isNatural    = false;
     _name         = "Bronze Helmet";
     _slot         = InventorySlotId.HELMET;
 }
示例#4
0
        public Item Unequip(InventorySlotId slot)
        {
            Item itemToUnequip = _slots[(int)slot];

            _slots[(int)slot] = null;
            return(itemToUnequip);
        }
示例#5
0
 public SteelHelmet(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(7, 14);
     _isNatural    = false;
     _name         = "Steel Helmet";
     _slot         = InventorySlotId.HELMET;
 }
 public SmallHealthPotion(Random healValue) : base()
 {
     _healValue = healValue.Next(1, 6);
     _name      = "Small Health Potion";
     _slot      = InventorySlotId.POTION1;
     _slot2     = InventorySlotId.POTION2;
 }
示例#7
0
        public Item Equip(InventorySlotId slot, Item item)
        {
            Item oldItem = null;

            if (slot == InventorySlotId.POTION1 || slot == InventorySlotId.POTION2)
            {
                if (_slots[6] == null)
                {
                    _slots[6] = item;
                }
                else if (_slots[7] == null)
                {
                    _slots[7] = item;
                }
                else
                {
                    // FIXME: Use (int)slot instead of always assigning to 6
                    oldItem   = _slots[6];
                    _slots[6] = item;
                }
                return(oldItem);
            }
            else
            {
                oldItem           = _slots[(int)slot];
                _slots[(int)slot] = item;
                return(oldItem);
            }
        }
示例#8
0
 public SteelSword(Random randAttack) : base()
 {
     _attackValue = randAttack.Next(13, 26);
     _isNatural   = false;
     _name        = "Steel Sword";
     _slot        = InventorySlotId.WEAPON;
 }
示例#9
0
 public UltraSword(Random randAttack) : base()
 {
     this._attackValue = randAttack.Next(30, 51);
     _isNatural        = false;
     _name             = "Ultra Sword";
     _slot             = InventorySlotId.WEAPON;
 }
示例#10
0
 public IronChestpiece(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(3, 9);
     _isNatural    = false;
     _name         = "Iron ChestPiece";
     _slot         = InventorySlotId.CHESTPIECE;
 }
示例#11
0
 public RandomHealthPotion(Random healValue) : base()
 {
     _healValue = healValue.Next(-15, 30);
     _name      = "Random Health Potion";
     _slot      = InventorySlotId.POTION1;
     _slot2     = InventorySlotId.POTION2;
 }
示例#12
0
        public Item Unequip(InventorySlotId slot)
        {
            Item removedItem = _items[slot];

            _items[slot] = null;
            return(removedItem);
        }
示例#13
0
 public LargeHealthPotion(Random healValue) : base()
 {
     _healValue = healValue.Next(25, 31);
     _name      = "Large Health Potion";
     _slot      = InventorySlotId.POTION1;
     _slot2     = InventorySlotId.POTION2;
 }
示例#14
0
        public Item UnEquip(InventorySlotId slot)
        {
            Item prevItem = _slots[(int)slot];

            _slots[(int)slot] = null;
            return(prevItem);
        }
示例#15
0
        public Item Unequip(InventorySlotId slot)
        {
            var oldItem = _items[slot];

            _items[slot] = null;
            return(oldItem);
        }
示例#16
0
 public IronSword(Random randAttack) : base()
 {
     _attackValue = randAttack.Next(8, 16);
     _isNatural   = false;
     _name        = "Iron Sword";
     _slot        = InventorySlotId.WEAPON;
 }
示例#17
0
 public MediumHealthPotion(Random healValue) : base()
 {
     _healValue = healValue.Next(10, 21);
     _name      = "Medium Health Potion";
     _slot      = InventorySlotId.POTION1;
     _slot2     = InventorySlotId.POTION2;
 }
示例#18
0
 public SteelGreaves(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(7, 14);
     _isNatural    = false;
     _name         = "Steel Greaves";
     _slot         = InventorySlotId.GREAVES;
 }
示例#19
0
 public BronzeGreaves(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(1, 5);
     _isNatural    = false;
     _name         = "Bronze Greaves";
     _slot         = InventorySlotId.GREAVES;
 }
示例#20
0
 public Gambeson(Random randAttack) : base()
 {
     _defenseValue = randAttack.Next(1, 5);
     _isNatural    = false;
     _name         = "Gambeson";
     _slot         = InventorySlotId.CHESTPIECE;
 }
示例#21
0
 public NaturalWeapon(Random randAttack, int lowerRange, int upperRange) : base()
 {
     //int swordAttack = randAttack.Next(4, 11);
     _attackValue = randAttack.Next(lowerRange, upperRange + 1);
     _isNatural   = true;
     _name        = "Natural";
     _slot        = InventorySlotId.WEAPON;
 }
示例#22
0
 public BronzeHelmet() : base()
 {
     _name         = "Bronze Helmet";
     _defenseValue = 2;
     _isNatural    = false;
     _weight       = 3;
     _slot         = InventorySlotId.HELMET;
 }
示例#23
0
 public GoldVambraces() : base()
 {
     _name         = "Gold Vambraces";
     _defenseValue = 5;
     _isNatural    = false;
     _weight       = 5;
     _slot         = InventorySlotId.VAMBRACES;
 }
示例#24
0
 public GoldSword() : base()
 {
     _name        = "Gold Sword";
     _attackValue = 5;
     _isNatural   = false;
     _weight      = 5;
     _slot        = InventorySlotId.WEAPON;
 }
示例#25
0
 public HeroSword() : base()
 {
     _name        = "Hero Sword";
     _attackValue = 8;
     _isNatural   = false;
     _weight      = 7;
     _slot        = InventorySlotId.WEAPON;
 }
示例#26
0
 public BronzeSword() : base()
 {
     _name        = "Bronze Sword";
     _attackValue = 2;
     _isNatural   = false;
     _weight      = 3;
     _slot        = InventorySlotId.WEAPON;
 }
示例#27
0
        public Item Equip(InventorySlotId slot, Item item)
        {
            //_items.Add(slot, item);
            var oldItem = _items[slot];

            _items[slot] = item;
            return(oldItem);
        }
示例#28
0
 public BronzeSword(Random randAttack) : base()
 {
     //int swordAttack = randAttack.Next(4, 11);
     _attackValue = randAttack.Next(4, 11);
     _isNatural   = false;
     _name        = "Bronze Sword";
     _slot        = InventorySlotId.WEAPON;
 }
示例#29
0
 public SoulSword() : base()
 {
     _name        = "Soul Sword";
     _attackValue = 10;
     _isNatural   = false;
     _weight      = 10;
     _slot        = InventorySlotId.WEAPON;
 }
示例#30
0
 public HeroChestpiece() : base()
 {
     _name         = "Hero Chestpiece";
     _defenseValue = 8;
     _isNatural    = false;
     _weight       = 5;
     _slot         = InventorySlotId.CHESTPIECE;
 }