Exemplo n.º 1
0
        public LootPackEntry(LootPackItem[] items, double chance, RandMinMax quantity, int minIntensity, int maxIntensity)
        {
            m_Items        = items;
            m_Quantity     = quantity;
            m_Chance       = (int)(100 * chance);
            m_MinIntensity = minIntensity;
            m_MaxIntensity = maxIntensity;

            m_TotalChance = 0;
            for (int i = 0; i < m_Items.Length; ++i)
            {
                m_TotalChance += m_Items[i].Chance;
            }
        }
Exemplo n.º 2
0
        public LootPackEntry( LootPackItem[] items, double chance, RandMinMax quantity, int minIntensity, int maxIntensity )
        {
            m_Items = items;
            m_Quantity = quantity;
            m_Chance = (int)(100 * chance);
            m_MinIntensity = minIntensity;
            m_MaxIntensity = maxIntensity;

            m_TotalChance = 0;
            for ( int i = 0; i < m_Items.Length; ++i )
                m_TotalChance += m_Items[i].Chance;
        }
Exemplo n.º 3
0
 public LootPackEntry( LootPackItem[] items, double chance, RandMinMax quantity )
     : this(items, chance, quantity, 0, 0)
 {
 }
Exemplo n.º 4
0
 public LootPackEntry(LootPackItem[] items, double chance, RandMinMax quantity) : this(items, chance, quantity, 0, 0)
 {
 }