public void OnDamageDealt_UCE_EquipableBuff() { for (int i = 0; i < equipment.Count; ++i) { ItemSlot slot = equipment[i]; if (slot.amount > 0) { EquipmentItem itemData = (EquipmentItem)slot.item.data; if (itemData != null && itemData.onHitBuffSelf != null && itemData.onHitBuffSelfApplyChance > 0) { itemData.ApplyOnHitBuffSelf(this); } } } }