1
0
Fork 0
polaris-task-force/src/collections
Z8MB1E 464ba2d5d4 feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound
The reveal was one linear clock, so every character cost the same and a comma
had nowhere to breathe. It now runs off a schedule: each visible unit costs
BASE_UNIT_MS plus a pause after it, longer at a sentence end and longest at a
line or paragraph break. Pauses never stack (a break after a full stop owns the
pause) and a comma inside a number is not a clause. The schedule is built in
relative units and scaled to the target duration, so a line paced to a recorded
clip keeps the rhythm instead of flattening it.

Between two spoken lines there is now a beat with the speaker's typing dots, and
clicking during it starts the next line at once. The opening line of a cascade
gets no beat.

The typing sound is synthesized (one tick per 55ms at most) from precomputed,
seeded tick times, so a re-render cannot re-roll the rhythm. It stays silent on a
line with a recorded clip, when the header mute is on, and under reduced motion.
It follows a new account preference, users.preferences.dialogue.typewriterSound,
separate from the voice switch, with a migration.

visibleLength is now defined as visibleText(text).length, so the schedule and the
renderer cannot disagree about how long a line is.
2026-11-24 19:20:11 -05:00
..
banking feat(rbac): migrate collection access controls to RBAC permissions 2026-08-19 19:47:51 -04:00
discord feat(bot): add editable Discord Rich Presence via command and CMS 2026-10-12 10:21:37 -04:00
game feat(npc-dialogue): testing-only conversations for superusers 2026-11-24 18:29:20 -05:00
intelligence feat(tech-tree): add note nodes with optional frontend visibility 2026-11-23 03:11:36 -05:00
interior feat(interior): fixture repairs, condition decay, and station blocking 2026-10-20 16:17:01 -04:00
locker feat(lockers): seed and unlimited-stock sync for limited arsenal 2026-11-20 19:52:15 -05:00
logistics feat(vehicles): add per-vehicle disallowed-cargo blacklist enforced at shipment 2026-10-26 22:17:21 -04:00
market style(collections): replace dashes in admin field descriptions 2026-09-07 05:19:50 -04:00
minigames perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
operations feat(operations): gate logistics extractions behind an officer review screen 2026-10-26 22:20:14 -04:00
projects feat(projects): enforce permissions and improve search 2026-08-21 00:26:33 -04:00
server chore(admin): group AI Connections and AI Settings under an AI section 2026-11-24 18:51:50 -05:00
story fix(rich-text): render full lexical formatting incl. colours across all fields 2026-11-18 13:10:26 -05:00
tickets feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
users feat(npc-dialogue): natural typing rhythm, a beat between lines, a typing sound 2026-11-24 19:20:11 -05:00
voiceover fix(uploads): store upload collections under the persistent media volume 2026-10-08 12:14:46 -04:00
wiki feat(wiki): add private drafts with a one-way publish 2026-11-18 11:06:37 -05:00
world feat(map-objectives): superuser-authored strategic objectives on mission maps 2026-10-27 02:12:31 -04:00
AGENTS.md refactor(intelligence): drop the factions.relationships array in favour of the ledger 2026-11-18 14:13:29 -05:00
Announcements.ts feat(announcements): add announcements system with roleDocs targeting and richText 2026-09-22 21:08:46 -04:00
Media.ts feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
Shims.ts perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00