Skip to content

Commit

Permalink
IntNoise1DInt result gets devided by 7 first
Browse files Browse the repository at this point in the history
suggestion by xoft
  • Loading branch information
NiLSPACE committed Oct 15, 2014
1 parent 57f8d2a commit 0cdd2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Enchantments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0cdd2b6

Please sign in to comment.