Rebalance the stomp ability

This commit is contained in:
Sollace 2021-02-19 18:53:28 +02:00
parent 52f62516fa
commit 12621518ba

View file

@ -94,7 +94,7 @@ public class EarthPonyStompAbility implements Ability<Hit> {
double dist = Math.sqrt(center.getSquaredDistance(i.getBlockPos())); double dist = Math.sqrt(center.getSquaredDistance(i.getBlockPos()));
if (dist <= rad + 3) { if (dist <= rad + 3) {
double inertia = dist / 5; double inertia = 2 / dist;
if (i instanceof LivingEntity) { if (i instanceof LivingEntity) {
inertia *= 1 + EnchantmentHelper.getEquipmentLevel(UEnchantments.HEAVY, (LivingEntity)i); inertia *= 1 + EnchantmentHelper.getEquipmentLevel(UEnchantments.HEAVY, (LivingEntity)i);
@ -110,7 +110,7 @@ public class EarthPonyStompAbility implements Ability<Hit> {
DamageSource damage = MagicalDamageSource.create("smash", player); DamageSource damage = MagicalDamageSource.create("smash", player);
double amount = (4 * player.getAttributeInstance(EntityAttributes.GENERIC_ATTACK_DAMAGE).getValue() + heavyness * 0.4) / (float)dist; double amount = (1.5F * player.getAttributeInstance(EntityAttributes.GENERIC_ATTACK_DAMAGE).getValue() + heavyness * 0.4) / (float)(dist * 1.3F);
if (i instanceof PlayerEntity) { if (i instanceof PlayerEntity) {
Race race = Pony.of((PlayerEntity)i).getSpecies(); Race race = Pony.of((PlayerEntity)i).getSpecies();