void addItemToDict(System.Type type, int weight){ weightSum += weight; items.Add(type, new LootWeights(weight, weightSum)); }