mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-09 02:29:50 -10:00
Dry a dolphin out with dry_out, not drowning
Dolphin.tick hurts a dolphin whose moistness ran out with damageSources().dryOut(), so the death message says it dried out; Horizon used the drown source, which reads as drowning.
This commit is contained in:
1 parent
ac2f223719
commit
74ae0056e8
1 file changed
+3
-1
@@ -339,7 +339,9 @@ pub fn ai_step(m: &mut Mob, w: &MobWorld, events: &mut Vec<MobEvent>) {
|
||||
} else {
|
||||
m.extra.counter -= 1;
|
||||
if m.extra.counter <= 0 {
|
||||
m.damage(1.0, super::Damage::of(super::DamageKind::Drown));
|
||||
// `Dolphin.tick` hurts with `damageSources().dryOut()`: the
|
||||
// death message names dehydration, not drowning.
|
||||
m.damage(1.0, super::Damage::of(super::DamageKind::DryOut));
|
||||
}
|
||||
if m.on_ground {
|
||||
let (a, b) = (m.random.next_float(), m.random.next_float());
|
||||
|
||||
Reference in new issue
Block a user