public void Execute()
        {
            Item itemToSell = _inventoryController.GetSelectedItem();

            if (itemToSell != null)
            {
                itemToSell = (Item)itemToSell.Clone();
                int gold = _shopController.BuyItem(itemToSell);
                _inventoryController.RemoveCurrentItem();
                _inventoryController.AddGold(gold);
            }
        }
Beispiel #2
0
 public bool PlayerGetGold(Item item)
 {
     se.Play(2);
     invController.AddGold(item);
     return(true);
 }