public static ExtendedItemData Extended(this ItemDrop.ItemData itemData) { if (itemData.IsExtended()) { return(itemData as ExtendedItemData); } return(null); }
public static bool Prefix(ItemDrop.ItemData __instance, ref ItemDrop.ItemData __result) { if (__instance.IsExtended()) { ExtendedItemDataFramework.Log($"Cloning extended item {__instance.m_shared.m_name}"); __result = __instance.Extended().ExtendedClone(); return(false); } ExtendedItemDataFramework.Log($"Cloning DEFAULT item {__instance.m_shared.m_name}"); return(true); }