Example #1
0
    private void RollTable(Inventory p_inventory)
    {
        for (int i = 0; i < m_items.Count; i++)
        {
            Drop drop = m_items[i];

            if ((m_allowDuplicateDrops || !m_droppedItems.Contains(drop)) && drop.RollDrop())
            {
                if (!m_allowDuplicateDrops)
                {
                    m_droppedItems.Add(drop);
                }

                drop.AddToInventory(p_inventory);
                break;
            }
        }
    }