Added Depth Strider enchantment
This commit is contained in:
parent
557dc5a93f
commit
ae8c871565
@ -183,6 +183,7 @@ int cEnchantments::StringToEnchantmentID(const AString & a_EnchantmentName)
|
|||||||
{ enchRespiration, "Respiration"},
|
{ enchRespiration, "Respiration"},
|
||||||
{ enchAquaAffinity, "AquaAffinity"},
|
{ enchAquaAffinity, "AquaAffinity"},
|
||||||
{ enchThorns, "Thorns"},
|
{ enchThorns, "Thorns"},
|
||||||
|
{ enchDepthStrider, "DepthStrider"},
|
||||||
{ enchSharpness, "Sharpness"},
|
{ enchSharpness, "Sharpness"},
|
||||||
{ enchSmite, "Smite"},
|
{ enchSmite, "Smite"},
|
||||||
{ enchBaneOfArthropods, "BaneOfArthropods"},
|
{ enchBaneOfArthropods, "BaneOfArthropods"},
|
||||||
@ -506,6 +507,20 @@ void cEnchantments::AddItemEnchantmentWeights(cWeightedEnchantments & a_Enchantm
|
|||||||
{
|
{
|
||||||
AddEnchantmentWeightToVector(a_Enchantments, 5, enchFeatherFalling, 1);
|
AddEnchantmentWeightToVector(a_Enchantments, 5, enchFeatherFalling, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Depth Strider
|
||||||
|
if ((a_EnchantmentLevel >= 30) && (a_EnchantmentLevel <= 45))
|
||||||
|
{
|
||||||
|
AddEnchantmentWeightToVector(a_Enchantments, 2, enchDepthStrider, 3);
|
||||||
|
}
|
||||||
|
else if ((a_EnchantmentLevel >= 20) && (a_EnchantmentLevel <= 35))
|
||||||
|
{
|
||||||
|
AddEnchantmentWeightToVector(a_Enchantments, 2, enchDepthStrider, 2);
|
||||||
|
}
|
||||||
|
else if ((a_EnchantmentLevel >= 10) && (a_EnchantmentLevel <= 25))
|
||||||
|
{
|
||||||
|
AddEnchantmentWeightToVector(a_Enchantments, 2, enchDepthStrider, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ public:
|
|||||||
enchRespiration = 5,
|
enchRespiration = 5,
|
||||||
enchAquaAffinity = 6,
|
enchAquaAffinity = 6,
|
||||||
enchThorns = 7,
|
enchThorns = 7,
|
||||||
|
enchDepthStrider = 8,
|
||||||
enchSharpness = 16,
|
enchSharpness = 16,
|
||||||
enchSmite = 17,
|
enchSmite = 17,
|
||||||
enchBaneOfArthropods = 18,
|
enchBaneOfArthropods = 18,
|
||||||
|
Loading…
Reference in New Issue
Block a user