DungeonMasterEngine.GameConsoleContent.HandCommand.TakeItem C# (CSharp) Method

TakeItem() private method

private TakeItem ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        private async Task TakeItem()
        {
            if (theron.Hand != null)
            {
                var ch = await GetFromItemIndex(theron.PartyGroup);

                if (ch != null)
                {
                    var inventory = await GetFromItemIndex(ch.Body.Storages);
                    if (inventory != null)
                    {
                        if (inventory.AddItem(theron.Hand))
                        {
                            theron.Hand = null;
                        }
                        else
                        {
                            Output.WriteLine("Unable to add item to inventory.");
                        }

                    }
                }
            }
            else
                Output.WriteLine("Hand is empty!");
        }
    }