Removed CustomCopy()
This commit is contained in:
parent
590a8c45c5
commit
952c53eb4e
19
src/Item.cpp
19
src/Item.cpp
@ -99,25 +99,6 @@ bool cItem::IsFullStack(void) const
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cItem::CustomCopy(cItem & a_OtherItem, bool a_CopyType, bool a_CopyCount, bool a_CopyDamage, bool a_CopyEnchantments, bool a_CopyCustomName, bool a_CopyLore)
|
|
||||||
{
|
|
||||||
if (a_CopyType)
|
|
||||||
m_ItemType = a_OtherItem.m_ItemType;
|
|
||||||
if (a_CopyCount)
|
|
||||||
m_ItemCount = a_OtherItem.m_ItemCount;
|
|
||||||
if (a_CopyDamage)
|
|
||||||
m_ItemDamage = a_OtherItem.m_ItemDamage;
|
|
||||||
if (a_CopyEnchantments)
|
|
||||||
m_Enchantments = a_OtherItem.m_Enchantments;
|
|
||||||
if (a_CopyCustomName)
|
|
||||||
m_CustomName = a_OtherItem.m_CustomName;
|
|
||||||
if (a_CopyLore)
|
|
||||||
m_Lore = a_OtherItem.m_Lore;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
char cItem::GetMaxStackSize(void) const
|
char cItem::GetMaxStackSize(void) const
|
||||||
{
|
{
|
||||||
|
@ -135,10 +135,6 @@ public:
|
|||||||
bool IsCustomNameEmpty(void) const { return (m_CustomName.empty()); }
|
bool IsCustomNameEmpty(void) const { return (m_CustomName.empty()); }
|
||||||
bool IsLoreEmpty(void) const { return (m_Lore.empty()); }
|
bool IsLoreEmpty(void) const { return (m_Lore.empty()); }
|
||||||
|
|
||||||
/** Copies specified internal variables from another item to this item */
|
|
||||||
void CustomCopy(cItem & a_OtherItem, bool a_CopyType, bool a_CopyCount, bool a_CopyDamage, bool a_CopyEnchantments, bool a_CopyCustomName, bool a_CopyLore);
|
|
||||||
|
|
||||||
|
|
||||||
/// Returns a copy of this item with m_ItemCount set to 1. Useful to preserve enchantments etc. on stacked items
|
/// Returns a copy of this item with m_ItemCount set to 1. Useful to preserve enchantments etc. on stacked items
|
||||||
cItem CopyOne(void) const;
|
cItem CopyOne(void) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user