Beispiel #1
0
        public override Equipment GetEquipment(string name, int amount = 1)
        {
            Equipment output = null;

            foreach (Ammo ammo in FillEquipmentList())
            {
                if (name == ammo.Name)
                {
                    output = new Ammo(ammo.Name, ammo.Cost, ammo.Weight, ammo.AmmoType, ammo.AmmoCount, amount);
                }
            }
            return(output);
        }
Beispiel #2
0
        public static List <Equipment> GetEquipmentList(EquipmentTypes type)
        {
            List <Equipment> output = null;

            switch (type)
            {
            case EquipmentTypes.Armour:
                output = Armour.FillEquipmentList();
                break;

            case EquipmentTypes.Ammo:
                output = Ammo.FillEquipmentList();
                break;

            case EquipmentTypes.Focus:
                output = Focus.FillEquipmentList();
                break;

            case EquipmentTypes.ItemContainer:
                output = ItemContainer.FillEquipmentList();
                break;

            case EquipmentTypes.Tool:
                output = Tool.FillEquipmentList();
                break;

            case EquipmentTypes.Utility:
                output = Utility.FillEquipmentList();
                break;

            case EquipmentTypes.Weapon:
                output = Weapon.FillEquipmentList();
                break;
            }
            return(output);
        }