From 0ec41399583d917f6a09e4dedf3db6a09992c84c Mon Sep 17 00:00:00 2001 From: Sean Petrie Date: Mon, 18 Nov 2024 16:58:04 -0600 Subject: [PATCH] Removed unused data type --- .../BuffEnchantAnyWeaponTTT.cs | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/TabletopTweaks-Core/NewComponents/OwlcatReplacements/BuffEnchantAnyWeaponTTT.cs b/TabletopTweaks-Core/NewComponents/OwlcatReplacements/BuffEnchantAnyWeaponTTT.cs index e539e93..a7c0804 100644 --- a/TabletopTweaks-Core/NewComponents/OwlcatReplacements/BuffEnchantAnyWeaponTTT.cs +++ b/TabletopTweaks-Core/NewComponents/OwlcatReplacements/BuffEnchantAnyWeaponTTT.cs @@ -165,47 +165,4 @@ private void SetEnchantmentInItem(ItemEntity item) { public BlueprintItemEnchantmentReference m_EnchantmentBlueprint; public EquipSlotBase.SlotType Slot; } - - public class BuffEnchantAnyWeaponDataTTT { - public void AddEnchantment(ItemEnchantment enchantment) { - if (enchantment == null) { - return; - } - if (this.m_Enchantment == null) { - this.m_Enchantment = enchantment; - return; - } - this.m_EnchantmentsList.Add(enchantment); - } - - public IEnumerable GetAll() { - if (this.m_Enchantment != null) { - yield return this.m_Enchantment; - } - foreach (ItemEnchantment itemEnchantment in this.m_EnchantmentsList) { - yield return itemEnchantment; - } - yield break; - } - - public void RemoveAndClear() { - foreach (ItemEnchantment itemEnchantment in this.GetAll()) { - ItemEntity owner = itemEnchantment.Owner; - if (owner != null) { - owner.RemoveEnchantment(itemEnchantment); - } - } - this.m_Enchantment = null; - this.m_EnchantmentsList.Clear(); - this.m_IsActive = false; - } - - [JsonProperty(PropertyName = "Enchantment")] - private ItemEnchantment m_Enchantment; - - [JsonProperty] - private List m_EnchantmentsList = new List(); - [JsonProperty] - public bool m_IsActive; - } }