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