Variable MESSAGE_MODE_BY_ROLL_MODEConst

MESSAGE_MODE_BY_ROLL_MODE: Record<SohlSpeakerRollMode, string | undefined> = ...

Maps each SoHL speaker roll-mode value to the Foundry v14 message-mode key consumed by ChatMessage.applyMode (public / self / blind / gm). Foundry v14 renamed applyRollModeapplyMode and switched from the legacy roll-mode vocabulary to these keys. SoHL still stores the legacy values (they are serialized in test results and back stable lang keys), so the mapping happens only where a value crosses into the Foundry API.

The default "roll" (system) mode has no explicit key — it means "use the client's configured default" — so it maps to undefined, which applyMode treats as "apply the core.messageMode setting".