The code now prevents conflicting enchantments.
This commit is contained in:
parent
0cdd2b64ed
commit
fa6f8fb38e
@ -649,6 +649,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s
|
|||||||
cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i));
|
cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i));
|
||||||
CurrentLoot.m_Enchantments.Add(Enchantment);
|
CurrentLoot.m_Enchantments.Add(Enchantment);
|
||||||
cEnchantments::RemoveEnchantmentWeightFromVector(Enchantments, Enchantment);
|
cEnchantments::RemoveEnchantmentWeightFromVector(Enchantments, Enchantment);
|
||||||
|
cEnchantments::CheckEnchantmentConflictsFromVector(Enchantments, Enchantment);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t j = 0; j < a_CountLootProbabs; j++)
|
for (size_t j = 0; j < a_CountLootProbabs; j++)
|
||||||
|
Loading…
Reference in New Issue
Block a user