feat(journal): allow players to emit roll messages
This commit is contained in:
parent
ae3045f96b
commit
4faff9a391
|
|
@ -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<RollPayload>({
|
||||
type: "roll",
|
||||
label: "掷骰",
|
||||
emitters: ["gm"],
|
||||
emitters: ["gm", "player"],
|
||||
schema,
|
||||
defaultPayload: () => ({
|
||||
notation: "1d20",
|
||||
|
|
|
|||
Loading…
Reference in New Issue