Add emit sound tempo and global emit speed/tempo defaults

This commit is contained in:
Jage9
2026-02-21 23:17:18 -05:00
parent d3a98ef1ea
commit 9571a3c14d
9 changed files with 88 additions and 11 deletions

View File

@@ -121,6 +121,7 @@ This is behavior-focused documentation for item types and their defaults.
- `emitRange=15`
- `emitVolume=100`
- `emitSoundSpeed=50`
- `emitSoundTempo=50`
- `emitEffect="off"`
- `emitEffectValue=50`
- `useSound=""`
@@ -131,6 +132,8 @@ This is behavior-focused documentation for item types and their defaults.
- `useCooldownMs=1000`
- `emitRange=15`
- `directional=false`
- `emitSoundSpeed=50`
- `emitSoundTempo=50`
### Use
- `use` toggles `enabled` on/off and plays `useSound` when configured.
@@ -141,7 +144,8 @@ This is behavior-focused documentation for item types and their defaults.
- `facing`: number `0..360` with `0.1` precision
- `emitRange`: integer `1..20`
- `emitVolume`: integer `0..100`
- `emitSoundSpeed`: integer `0..100` (`0=0.5x`, `50=1.0x`, `100=2.0x`)
- `emitSoundSpeed`: integer `0..100` (`0=0.5x`, `50=1.0x`, `100=2.0x`) for speed/pitch
- `emitSoundTempo`: integer `0..100` (`0=0.5x`, `50=1.0x`, `100=2.0x`) for tempo
- `emitEffect`: `reverb | echo | flanger | high_pass | low_pass | off`
- `emitEffectValue`: number `0..100` with `0.1` precision
- `useSound`: empty, filename (assumed under `sounds/`), or full URL