1
0

Implemented custom names and lore

+ Added custom names and lore
+ Added saving and loading
+ Added writing and parsing of NBT
This commit is contained in:
Tiger Wang
2014-01-15 22:38:03 +00:00
parent 3c31f2d8d8
commit fcafd5a2e0
4 changed files with 107 additions and 35 deletions

View File

@@ -89,6 +89,9 @@ void cSlotArea::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickA
Slot.m_ItemCount -= DraggingItem.m_ItemCount;
DraggingItem.m_ItemType = Slot.m_ItemType;
DraggingItem.m_ItemDamage = Slot.m_ItemDamage;
DraggingItem.m_Enchantments = Slot.m_Enchantments;
DraggingItem.m_CustomName = Slot.m_CustomName;
DraggingItem.m_Lore = Slot.m_Lore;
if (Slot.m_ItemCount <= 0)
{
@@ -105,6 +108,10 @@ void cSlotArea::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickA
Slot.m_ItemCount++;
Slot.m_ItemDamage = DraggingItem.m_ItemDamage;
DraggingItem.m_ItemCount--;
Slot.m_Enchantments = DraggingItem.m_Enchantments;
Slot.m_CustomName = DraggingItem.m_CustomName;
Slot.m_Lore = DraggingItem.m_Lore;
}
if (DraggingItem.m_ItemCount <= 0)
{