1
0
Fork 0

IntNoise1DInt result gets devided by 7 first

suggestion by xoft
This commit is contained in:
STRWarrior 2014-10-15 15:42:45 +02:00
parent 57f8d2a55e
commit 0cdd2b64ed
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{