A1 + A2
This commit is contained in:
@@ -171,9 +171,9 @@ namespace GeometryTD.CustomComponent
|
||||
}
|
||||
|
||||
float totalWeight = 0f;
|
||||
for (int rarityIndex = 0; rarityIndex < _rarityWeightBuffer.Length; rarityIndex++)
|
||||
foreach (var weight in _rarityWeightBuffer)
|
||||
{
|
||||
totalWeight += Mathf.Max(0f, _rarityWeightBuffer[rarityIndex]);
|
||||
totalWeight += Mathf.Max(0f, weight);
|
||||
}
|
||||
|
||||
if (totalWeight <= 0f)
|
||||
|
||||
Reference in New Issue
Block a user