Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid.
http://forum.mc-server.org/showthread.php?tid=831 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1380 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -8,6 +8,21 @@
|
||||
|
||||
|
||||
|
||||
bool cItem::IsStackableWith(const cItem & a_OtherStack)
|
||||
{
|
||||
if (a_OtherStack.m_ItemType != m_ItemType)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO: match enchantments etc.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cItem::GetJson( Json::Value & a_OutValue ) const
|
||||
{
|
||||
a_OutValue["ID"] = m_ItemType;
|
||||
|
||||
Reference in New Issue
Block a user