1 private void GetTotalWeights() 2 { 3 totalWeights = 0; 4 5 //Add all of the items' Weights together 6 foreach (LootTableEntry entry in lootEntries) 7 { 8 totalWeights += entry.Weight; 9 } 10 }