Capped* strength of Collapse
This commit is contained in:
parent
92c94b7853
commit
95b1aa991b
|
|
@ -47,7 +47,7 @@ public record CollapseEffect(LevelBasedValue amount) implements EnchantmentEntit
|
||||||
// as well as punishing loading too many effects at once due to their local iframes.
|
// as well as punishing loading too many effects at once due to their local iframes.
|
||||||
// AKA: this minimises the odds that players start 1-tapping each other.
|
// AKA: this minimises the odds that players start 1-tapping each other.
|
||||||
float damage = (effect.getAmplifier() + 1) * effect.getDuration() + 0.05f;
|
float damage = (effect.getAmplifier() + 1) * effect.getDuration() + 0.05f;
|
||||||
enemy.hurt(enemy.damageSources().magic(), Math.max(damage, this.amount.calculate(level)));
|
enemy.hurt(enemy.damageSources().magic(), Math.min(damage, this.amount.calculate(level)));
|
||||||
enemy.invulnerableTime = 0;
|
enemy.invulnerableTime = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
"enchanted": "attacker",
|
"enchanted": "attacker",
|
||||||
"effect": {
|
"effect": {
|
||||||
"type": "mc_rebalance:collapse",
|
"type": "mc_rebalance:collapse",
|
||||||
"amount": 1.0
|
"amount": 20.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue