* Improve the inventory. Prepare for survival mode inventory.

This commit is contained in:
iProgramInCpp
2023-08-04 09:54:39 +03:00
parent 7c83a4d6aa
commit aa027ec549
12 changed files with 290 additions and 309 deletions

View File

@@ -14,10 +14,16 @@ void ItemInstance::init(int itemID, int amount, int auxValue)
{
m_itemID = itemID;
m_amount = amount;
m_auxValue = auxValue;
//@BUG? Not using the auxValue. This is problematic in the case of wool and dyes.
}
ItemInstance::ItemInstance()
{
init(0, 0, 0);
}
ItemInstance::ItemInstance(Item* pItem)
{
init(pItem->m_itemID, 1, 0);