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); }
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; //} }); }