summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-07 22:18:53 +0200
committerMattes D <github@xoft.cz>2014-05-07 22:18:53 +0200
commitd1b719885da02e917a420b625085e0bd6b9fd70b (patch)
treec8cd2b05be0874aca2f3f5ed572e823ef6c860d9 /src/Item.h
parentMerge pull request #853 from Howaner/Slabs (diff)
parentMissing comma (diff)
downloadcuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.tar
cuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.tar.gz
cuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.tar.bz2
cuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.tar.lz
cuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.tar.xz
cuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.tar.zst
cuberite-d1b719885da02e917a420b625085e0bd6b9fd70b.zip
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/Item.h b/src/Item.h
index 8eb0a1f4e..2f65d5344 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,6 +87,7 @@ public:
m_Enchantments(a_CopyFrom.m_Enchantments),
m_CustomName (a_CopyFrom.m_CustomName),
m_Lore (a_CopyFrom.m_Lore),
+ m_RepairCost (a_CopyFrom.m_RepairCost),
m_FireworkItem(a_CopyFrom.m_FireworkItem)
{
}
@@ -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;
+
+ int m_RepairCost;
+ cFireworkItem m_FireworkItem;
};
// tolua_end