示例#1
0
 public void EquipItem(string location, Item equippedItem)
 {
     equipment[location] = equippedItem;
 }
示例#2
0
 public bool ItemIsEquipped(Item item)
 {
     if (equipment.ContainsValue(item))
     {
         return true;
     }
     return false;
 }
示例#3
0
 public void UnequipItem(Item item)
 {
     if (item is Weapon)
     {
         equipment[EquipmentTypes.MELEE_WEAPON] = defaultWeapon;
     }
 }