Skip to content

Commit

Permalink
The code now prevents conflicting enchantments.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLSPACE committed Oct 15, 2014
1 parent 0cdd2b6 commit fa6f8fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ItemGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s
cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i));
CurrentLoot.m_Enchantments.Add(Enchantment);
cEnchantments::RemoveEnchantmentWeightFromVector(Enchantments, Enchantment);
cEnchantments::CheckEnchantmentConflictsFromVector(Enchantments, Enchantment);
}

for (size_t j = 0; j < a_CountLootProbabs; j++)
Expand Down

0 comments on commit fa6f8fb

Please sign in to comment.