Пример #1
0
        public void BagUnequip(EquipmentCHRType t)
        {
            int          i    = (int)t;
            EquipmentCHR item = null;

            item = Equipments[i].GetClone();
            if (item.Name != null)
            {
                if (BagAdd(item))
                {
                    Equipments[i] = new EquipmentCHR();
                }
            }
        }
Пример #2
0
        public void BagEquip(int i)
        {
            EquipmentCHR item = null;

            try
            {
                item = (EquipmentCHR)BagSee(i);
                bag.RemoveAt(i);
            }
            catch
            {
                //BagIn(item);
                return;
            }
            EquipmentCHR item_tmp;

            item_tmp = Equipments[(int)item.EquipmentType].GetClone();
            if (item_tmp.Name != null)
            {
                BagAdd(item_tmp);
            }
            Equipments[(int)item.EquipmentType] = item;
        }
Пример #3
0
 public void BagUnequip(EquipmentCHRType t)
 {
     int i = (int)t;
     EquipmentCHR item = null;
     item = Equipments[i].GetClone();
     if (item.Name != null)
     {
         if (BagAdd(item))
         {
             Equipments[i] = new EquipmentCHR();
         }
     }
 }