mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Rebalance the stomp ability
This commit is contained in:
parent
52f62516fa
commit
12621518ba
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue