Hotfix to check if certain objects have inventories or not.

This commit is contained in:
Joshua Navarro 2018-12-24 15:06:42 -08:00
parent 3fd3723117
commit e83e031568
1 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,18 @@ namespace Revitalize.Framework.Utilities
} }
} }
/// <summary>
/// Checks to see if this core object actually has a valid inventory.
/// </summary>
public bool HasInventory
{
get
{
if (this.capacity <= 0) return false;
return true;
}
}
public InventoryManager() public InventoryManager()
{ {
this.capacity = 0; this.capacity = 0;