diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-07 12:30:30 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-07 12:30:30 +0200 |
commit | d6cb6e0423fe38478c69f5d249882a01d727f0ed (patch) | |
tree | 5058b8901bc482a1711f537618a04be5791c6994 /src/Item.h | |
parent | Rename CanRepairWithItem to CanRepairWithRawMaterial and rename Size() to Count() (diff) | |
download | cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.tar cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.tar.gz cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.tar.bz2 cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.tar.lz cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.tar.xz cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.tar.zst cuberite-d6cb6e0423fe38478c69f5d249882a01d727f0ed.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Item.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/Item.h b/src/Item.h index 8eb0a1f4e..7e2fc6cff 100644 --- a/src/Item.h +++ b/src/Item.h @@ -40,6 +40,7 @@ public: m_ItemDamage(0), m_CustomName(""), m_Lore(""), + m_RepairCost(0), m_FireworkItem() { } @@ -60,6 +61,7 @@ public: m_Enchantments(a_Enchantments), m_CustomName (a_CustomName), m_Lore (a_Lore), + m_RepairCost (0), m_FireworkItem() { if (!IsValidItem(m_ItemType)) @@ -85,7 +87,8 @@ public: m_Enchantments(a_CopyFrom.m_Enchantments), m_CustomName (a_CopyFrom.m_CustomName), m_Lore (a_CopyFrom.m_Lore), - m_FireworkItem(a_CopyFrom.m_FireworkItem) + m_FireworkItem(a_CopyFrom.m_FireworkItem), + m_RepairCost (a_CopyFrom.m_RepairCost) { } @@ -100,6 +103,7 @@ public: m_Enchantments.Clear(); m_CustomName = ""; m_Lore = ""; + m_RepairCost = 0; m_FireworkItem.EmptyData(); } @@ -109,6 +113,7 @@ public: m_ItemType = E_ITEM_EMPTY; m_ItemCount = 0; m_ItemDamage = 0; + m_RepairCost = 0; } @@ -190,14 +195,15 @@ public: // tolua_begin - short m_ItemType; - char m_ItemCount; - short m_ItemDamage; - cEnchantments m_Enchantments; - AString m_CustomName; - AString m_Lore; - - cFireworkItem m_FireworkItem; + short m_ItemType; + char m_ItemCount; + short m_ItemDamage; + cEnchantments m_Enchantments; + AString m_CustomName; + AString m_Lore; + + cFireworkItem m_FireworkItem; + UInt16 m_RepairCost; }; // tolua_end |