diff --git a/client/public/version.js b/client/public/version.js index c393788..9256cb7 100644 --- a/client/public/version.js +++ b/client/public/version.js @@ -1,5 +1,5 @@ // Maintainer-controlled web client version. // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) -window.CHGRID_WEB_VERSION = "2026.02.21 R121"; +window.CHGRID_WEB_VERSION = "2026.02.21 R122"; // Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid. window.CHGRID_TIME_ZONE = "America/Detroit"; diff --git a/client/src/items/itemRegistry.ts b/client/src/items/itemRegistry.ts index 4178804..e0f6d45 100644 --- a/client/src/items/itemRegistry.ts +++ b/client/src/items/itemRegistry.ts @@ -74,14 +74,23 @@ export type ItemPropertyMetadata = { }; const DEFAULT_ITEM_TYPE_TOOLTIPS: Record = { - radio_station: 'Streams audio from a URL and can emit directional sound on the grid.', - dice: 'Roll one or more dice and report each value plus total.', - wheel: 'Spin a wheel from a comma-delimited list of spaces.', - clock: 'Speaks the current time using its configured timezone and format.', + radio_station: 'Can play stations from the Internet. Tune multiple to the same station and they will sync up.', + dice: 'Great for drinking games or boredom.', + wheel: 'Spin to win fabulous prizes.', + clock: 'It tells the time. What did you think it did?', +}; + +const DEFAULT_GLOBAL_ITEM_PROPERTY_METADATA: Record = { + useSound: { valueType: 'sound', tooltip: 'One-shot sound played when this item is used successfully.' }, + emitSound: { valueType: 'sound', tooltip: 'Looping sound emitted from this item on the grid.' }, + useCooldownMs: { valueType: 'number', tooltip: 'Global cooldown in milliseconds between uses for this item type.' }, + emitRange: { valueType: 'number', tooltip: 'Maximum distance in squares where emitted audio can be heard.' }, + directional: { valueType: 'boolean', tooltip: "Whether emitted audio favors the item's facing direction." }, }; const DEFAULT_ITEM_PROPERTY_METADATA: Record> = { radio_station: { + ...DEFAULT_GLOBAL_ITEM_PROPERTY_METADATA, title: { valueType: 'text', tooltip: 'Display name spoken and shown for this item.' }, streamUrl: { valueType: 'text', tooltip: 'Audio stream URL used by this radio.' }, enabled: { valueType: 'boolean', tooltip: 'Turns playback on or off for this radio.' }, @@ -93,15 +102,18 @@ const DEFAULT_ITEM_PROPERTY_METADATA: Record