Merge pull request #2265 from kacpherek/fix/frog-fall-damage
🤖 Agent: Read against the vanilla 26.3 sources (Let frogs take fall damage five points below the base amount) and proven in contrib-gate-21's union of 72 kacpherek PRs: 95 parity harnesses on playhorizon and the Mac mini, clippy, 1534 tests, lan_e2e 23 checks in-frame and with --server-thread. Thanks @kacpherek!
This commit is contained in:
@@ -660,7 +660,11 @@ impl Mob {
|
||||
return;
|
||||
}
|
||||
let power = self.fall_distance + 1.0e-6 - self.kind.safe_fall_distance;
|
||||
let damage = (power * self.kind.fall_damage_multiplier).floor();
|
||||
let mut damage = (power * self.kind.fall_damage_multiplier).floor();
|
||||
// Frog.calculateFallDamage: five points less than the base damage.
|
||||
if self.species() == super::Species::Frog {
|
||||
damage -= 5.0;
|
||||
}
|
||||
if damage > 0.0 {
|
||||
let at = [self.position.x, self.position.y, self.position.z];
|
||||
let sound = if damage > 4.0 {
|
||||
|
||||
@@ -1447,7 +1447,6 @@ impl Def {
|
||||
| S::IronGolem
|
||||
| S::Cat
|
||||
| S::Ocelot
|
||||
| S::Frog
|
||||
| S::Slime
|
||||
| S::MagmaCube
|
||||
| S::Wither
|
||||
|
||||
Reference in New Issue
Block a user