December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -27,19 +27,19 @@ int DamageEnchantment::getMaxLevel()
return 5;
}
int DamageEnchantment::getDamageBonus(int level, shared_ptr<Mob> target)
float DamageEnchantment::getDamageBonus(int level, shared_ptr<LivingEntity> target)
{
if (type == ALL)
{
return Mth::floor(level * 2.75f);
return level *1.25f;
}
if (type == UNDEAD && target->getMobType() == UNDEAD)
{
return Mth::floor(level * 4.5f);
return level * 2.5f;
}
if (type == ARTHROPODS && target->getMobType() == ARTHROPOD)
{
return Mth::floor(level * 4.5f);
return level * 2.5f;
}
return 0;
}