private void PickUpItem()
        {
            if (world[player.X, player.Y].Monster == null && world[player.X, player.Y].Item != null)
            {
                player.AddItem(world[player.X, player.Y].Item);

                AddMessage($"You have picked up item: {world[player.X, player.Y].Item.Name}");
                world[player.X, player.Y].Item = null;
            }
        }
Exemple #2
0
 private void AddItem()
 {
     player.AddItem(world);
     enemyPlayer.AddItem(world);
 }