Esempio n. 1
0
        public void Sell(Player player, int index)
        {
            Item clone = (Item)goods[index].Clone();

            NetGame.GroceryBuy(clone.Id);
            //if (player.Inventory.Take(69, prices[index]))
            //player.Inventory.Add(clone);
        }
Esempio n. 2
0
 public void Activate(int Invid)
 {
     Task.Factory.StartNew(() =>
     {
         NetGame.UseItem(0, Items[Invid].Id_exemplar);
         //items[Invid].WorkFunc(player);
         //if (items[Invid].QuantityLowCheck())
         //{
         //  items[Invid] = null;
         //}
     });
 }