Capped* strength of Collapse

This commit is contained in:
patience 2026-03-10 02:04:45 +00:00
parent 92c94b7853
commit 95b1aa991b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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;
} }
} }

View file

@ -26,7 +26,7 @@
"enchanted": "attacker", "enchanted": "attacker",
"effect": { "effect": {
"type": "mc_rebalance:collapse", "type": "mc_rebalance:collapse",
"amount": 1.0 "amount": 20.0
} }
} }
] ]