From 24050067b2b0846faaa1583efe909f574814c880 Mon Sep 17 00:00:00 2001 From: cosmo Date: Tue, 10 Feb 2026 14:37:50 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9c8b1fc..864d728 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This module adds visually stunning effects to chat cardswhen a player or GM roll 1. Open FoundryVTT and go to the **Add-on Modules** tab. 2. Click **Install Module**. 3. In the "Manifest URL" field, paste the following link: - `https://github.com/cptn-cosmo/dh-immersive-crits/releases/latest/download/module.json` + `https://git.geeks.gay/cosmo/dh-immersive-crits/src/branch/main/module.json` 4. Click **Install**. ## Configuration @@ -35,9 +35,4 @@ Go to **Game Settings** -> **Configure Settings** -> **Module Settings** -> **Im ## Compatibility - **FoundryVTT**: v13+ -- **System**: Daggerheart - -## Credits - -Created by **CPTN Cosmo**. -Project URL: [GitHub](https://github.com/cptn-cosmo/dh-immersive-crits) +- **System**: Daggerheart \ No newline at end of file From 442442621dd77a402ef66fbacc324b54c936ce34 Mon Sep 17 00:00:00 2001 From: CPTN Cosmo Date: Tue, 10 Feb 2026 16:59:54 +0100 Subject: [PATCH 2/3] feat: change game settings scope from world to client for critical hit animations and effects --- scripts/module.js | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/scripts/module.js b/scripts/module.js index fdb9e1e..0de2e2a 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -1,9 +1,30 @@ Hooks.once('init', () => { // Register Settings + // Register Configuration - Scope Mode + game.settings.register('dh-immersive-crits', 'configurationMode', { + name: 'Configuration Mode', + hint: 'Choose whether settings are global (GM controls everyone) or client-specific (users choose their own). Requires a reload to take effect.', + scope: 'world', + config: true, + type: String, + choices: { + "world": "Global (GM Controlled)", + "client": "Per-User (Player Controlled)" + }, + default: 'world', + onChange: () => { + // We can't easily force a reload, but the hint says it's required. + // Ideally we'd pop a dialog but a hint is sufficient for now. + } + }); + + const configMode = game.settings.get('dh-immersive-crits', 'configurationMode'); + const targetScope = configMode; + game.settings.register('dh-immersive-crits', 'critAnimation', { name: 'Critical Hit Animation', hint: 'Select the visual effect for critical hit chat cards.', - scope: 'world', + scope: targetScope, config: true, type: String, choices: { @@ -21,7 +42,7 @@ Hooks.once('init', () => { game.settings.register('dh-immersive-crits', 'pulseColor', { name: 'Pulse Color', hint: 'Select the color for the Pulse animation.', - scope: 'world', + scope: targetScope, config: true, type: String, default: '#ff0000' @@ -30,7 +51,7 @@ Hooks.once('init', () => { game.settings.register('dh-immersive-crits', 'dsnCritEffect', { name: 'DiceSoNice Critical Effect', hint: 'Select the DiceSoNice special effect to play on critical hits.', - scope: 'world', + scope: targetScope, config: true, type: String, choices: { From 78a43d0cf695fef331825a8572cc7e0d0da7b40c Mon Sep 17 00:00:00 2001 From: CPTN Cosmo Date: Tue, 10 Feb 2026 18:03:20 +0100 Subject: [PATCH 3/3] 1.1 release and url fix --- module.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module.json b/module.json index 11567d9..4f7a49e 100644 --- a/module.json +++ b/module.json @@ -1,7 +1,7 @@ { "id": "dh-immersive-crits", "title": "Immersive Crits for Daggerheart", - "version": "1.0.0", + "version": "1.1.0", "compatibility": { "minimum": "13", "verified": "13" @@ -30,8 +30,8 @@ "styles": [ "styles/immersive-crits.css" ], - "url": "https://github.com/cptn-cosmo/dh-immersive-crits", - "manifest": "https://github.com/cptn-cosmo/dh-immersive-crits/releases/latest/download/module.json", - "download": "https://github.com/cptn-cosmo/dh-immersive-crits/releases/download/1.0.0/dh-immersive-crits.zip", + "url": "https://git.geeks.gay/cosmo/dh-immersive-crits", + "manifest": "https://git.geeks.gay/cosmo/dh-immersive-crits/releases/latest/download/module.json", + "download": "https://git.geeks.gay/cosmo/dh-immersive-crits/releases/download/1.1.0/dh-immersive-crits.zip", "description": "Immersive crits for Daggerheart." } \ No newline at end of file