Jester stomp sounds, not step !

This commit is contained in:
2026-11-22 11:08:36 -03:00
parent 8add5f852e
commit dfb110e0f8
11 changed files with 50 additions and 12 deletions
+4 -1
View File
@@ -107,7 +107,10 @@ export class RemoteEntity extends Entity {
this.update_walk_animation();
if (this.swing_ticks !== undefined && ++this.swing_ticks >= SWING_TICKS) this.swing_ticks = undefined;
if (!this.dead) {
this.play_steps(sound_of(this.#sounds, "step"));
this.play_steps(() => {
const own = sound_of(this.#sounds, "step");
return this.animation ? this.animation.step_sound(own) : own;
});
if (--this.#ambient_ticks <= 0) {
this.#ambient_ticks = random_ambient_ticks();
sounds.play_of(this.#sounds, "ambient", { follow: this.id });