public void Unequip(Equipable ep) { resistanceManager.SubtractResistances(ep.resistances); actor.Character.resistanceManager.SubtractResistances(ep.resistances); if (StorageItem.IsStorageItem(ep)) { storage.RemoveStorageItem((StorageItem)ep); } }
public void Equip(Equipable ep) { EquipableType equipableType = ep.equipableType; resistanceManager.AddResistances(ep.resistances); actor.Character.resistanceManager.AddResistances(ep.resistances); SetEquipmentParent(ep, equipableType, Equipable.IsHand(equipableType)); if (StorageItem.IsStorageItem(ep)) { storage.AddStorageItem((StorageItem)ep); } }