예제 #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;
            }
        }
예제 #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;
        }
예제 #3
0
 public LootPackEntry( LootPackItem[] items, double chance, RandMinMax quantity )
     : this(items, chance, quantity, 0, 0)
 {
 }
예제 #4
0
 public LootPackEntry(LootPackItem[] items, double chance, RandMinMax quantity) : this(items, chance, quantity, 0, 0)
 {
 }