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 applyRollMode → applyMode 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".
Maps each SoHL speaker roll-mode value to the Foundry v14 message-mode key consumed by
ChatMessage.applyMode(public/self/blind/gm). Foundry v14 renamedapplyRollMode→applyModeand 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 toundefined, whichapplyModetreats as "apply thecore.messageModesetting".