main.ts has no test file, and feelEffects (src/client/main.ts:424–451) is where four game rules live: how far a footstep, a dry trigger, a plant and a defuse carry (FOOTSTEP_EARSHOT, EMPTY_EARSHOT, SITE_EARSHOT), that the bomb's beep and its blast carry everywhere, that an effect is heard from the camera's ears and not from your corpse while you are spectating, and that a hurt effect is only ever the local player's. None of it can fail a test today. #87 took the buy menu out of this file the same way; this is the next thing in it that is rules rather than glue.
Done looks like
Files I expect to change: new src/client/hearing.ts and src/client/hearing.test.ts, src/client/main.ts.
Risks:flinch mutates a player — keep it out of the pure module and leave it in the caller, or the module stops being plain data out; audio.ts's API should not move under #80, which is adding its first test; this is client-only, so observe.ts and the RL arena must not gain an import of it and must not allocate per tick because of it.
main.tshas no test file, andfeelEffects(src/client/main.ts:424–451) is where four game rules live: how far a footstep, a dry trigger, a plant and a defuse carry (FOOTSTEP_EARSHOT,EMPTY_EARSHOT,SITE_EARSHOT), that the bomb's beep and its blast carry everywhere, that an effect is heard from the camera's ears and not from your corpse while you are spectating, and that ahurteffect is only ever the local player's. None of it can fail a test today. #87 took the buy menu out of this file the same way; this is the next thing in it that is rules rather than glue.Done looks like
Files I expect to change: new
src/client/hearing.tsandsrc/client/hearing.test.ts,src/client/main.ts.Risks:
flinchmutates a player — keep it out of the pure module and leave it in the caller, or the module stops being plain data out;audio.ts's API should not move under #80, which is adding its first test; this is client-only, soobserve.tsand the RL arena must not gain an import of it and must not allocate per tick because of it.Brief that fits: vesper.