From 4faff9a39103b600e71ddc2411d248e0e3179535 Mon Sep 17 00:00:00 2001 From: hypercross Date: Thu, 9 Jul 2026 09:06:25 +0800 Subject: [PATCH] feat(journal): allow players to emit roll messages --- src/components/journal/types/roll.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/journal/types/roll.tsx b/src/components/journal/types/roll.tsx index 70b100c..ba0ec77 100644 --- a/src/components/journal/types/roll.tsx +++ b/src/components/journal/types/roll.tsx @@ -1,9 +1,9 @@ /** * Built-in message type: roll * - * Emitters: gm + * Emitters: gm, player * Command: /roll formula - * The GM's browser rolls the formula and publishes the resolved result. + * The sender's browser rolls the formula and publishes the resolved result. */ import { z } from "zod"; @@ -44,7 +44,7 @@ export function resolveRollPayload(raw: { registerMessageType({ type: "roll", label: "掷骰", - emitters: ["gm"], + emitters: ["gm", "player"], schema, defaultPayload: () => ({ notation: "1d20",