Tie local footstep fade ramp to movement cooldown

This commit is contained in:
Jage9
2026-02-22 19:43:15 -05:00
parent b02be51910
commit d504e18771
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version. // Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.22 R177"; window.CHGRID_WEB_VERSION = "2026.02.22 R178";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid. // Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit"; window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -1104,7 +1104,7 @@ function handleMovement(): void {
persistPlayerPosition(); persistPlayerPosition();
state.player.lastMoveTime = now; state.player.lastMoveTime = now;
void refreshAudioSubscriptions(true); void refreshAudioSubscriptions(true);
void audio.playSample(randomFootstepUrl(), FOOTSTEP_GAIN, 100); void audio.playSample(randomFootstepUrl(), FOOTSTEP_GAIN, MOVE_COOLDOWN_MS);
signaling.send({ type: 'update_position', x: nextX, y: nextY }); signaling.send({ type: 'update_position', x: nextX, y: nextY });
const namesOnTile = getPeerNamesAtPosition(nextX, nextY); const namesOnTile = getPeerNamesAtPosition(nextX, nextY);