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(); } } }
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; }