Exemplo n.º 1
0
        /// <summary>
        /// Drop all armor and main inventory items.
        /// </summary>
        public virtual void DropAllItems()
        {
            for (int i = 0; i < MainInventory.Length; i++)
            {
                if (MainInventory[i] != null)
                {
                    Player.DropPlayerItemWithRandomChoice(MainInventory[i], true);
                    MainInventory[i] = null;
                }
            }

            for (int j = 0; j < ArmorInventory.Length; j++)
            {
                if (ArmorInventory[j] != null)
                {
                    Player.DropPlayerItemWithRandomChoice(ArmorInventory[j], true);
                    ArmorInventory[j] = null;
                }
            }
        }