IntNoise1DInt result gets devided by 7 first
suggestion by xoft
This commit is contained in:
parent
57f8d2a55e
commit
0cdd2b64ed
@ -1030,7 +1030,7 @@ cEnchantments cEnchantments::GenerateEnchantmentFromVector(cWeightedEnchantments
|
||||
}
|
||||
|
||||
cNoise Noise(a_Seed);
|
||||
int RandomNumber = Noise.IntNoise1DInt(AllWeights) % AllWeights;
|
||||
int RandomNumber = Noise.IntNoise1DInt(AllWeights) / 7 % AllWeights;
|
||||
|
||||
for (cWeightedEnchantments::iterator it = a_Enchantments.begin(); it != a_Enchantments.end(); ++it)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user