public bool RemoveResource(Guid resourceId, int amount) { if (Inventory.HasAmountResource(resourceId) >= amount) { Inventory.RemoveResource(resourceId, amount); return(true); } if (CurrentLocation != null && Owns.Contains(CurrentLocation) && CurrentLocation.Inventory.HasAmountResource(resourceId) >= amount) { CurrentLocation.Inventory.RemoveResource(resourceId, amount); return(true); } return(false); }