From 77d43f28b4bfb241e68106e25711a39c4dc726bb Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Tue, 7 Oct 2025 22:16:23 -0600 Subject: [PATCH] Add a setting that makes it so player rolls don't auto-update the sands of fate --- langs/en-ca.json | 4 ++++ module/settings/worldSettings.mjs | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/langs/en-ca.json b/langs/en-ca.json index 963b2c2..f42b159 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -155,6 +155,10 @@ "both": "Notification and Pause Game", "nothing": "Do Nothing" } + }, + "allowUpdateSandsSocket": { + "name": "Player Haste Updates the Sands of Fate", + "hint": "This setting determines if when a player makes a haste check that the result will automatically be applied to the global Sands of Fate. Disabling this is good if you want to let players roll without needing to worry about automation messing anything up while they spam rolls." } }, "Apps": { diff --git a/module/settings/worldSettings.mjs b/module/settings/worldSettings.mjs index ca095ae..ac1643c 100644 --- a/module/settings/worldSettings.mjs +++ b/module/settings/worldSettings.mjs @@ -39,4 +39,14 @@ export function registerWorldSettings() { }, }), }); + + game.settings.register(`ripcrypt`, `allowUpdateSandsSocket`, { + name: `RipCrypt.setting.allowUpdateSandsSocket.name`, + hint: `RipCrypt.setting.allowUpdateSandsSocket.hint`, + scope: `world`, + config: true, + requiresReload: false, + type: Boolean, + default: true, + }); };