From 00af9286d40bcfad8852d4d9c4bcc7729d7e003e Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 21 Dec 2025 22:02:39 -0700 Subject: [PATCH] Add tweak blocking for when Crucible is the game system --- module/conflicts/crucible.mjs | 10 ++++++++++ module/oft.mjs | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 module/conflicts/crucible.mjs diff --git a/module/conflicts/crucible.mjs b/module/conflicts/crucible.mjs new file mode 100644 index 0000000..6df24db --- /dev/null +++ b/module/conflicts/crucible.mjs @@ -0,0 +1,10 @@ +import { key as preventMovementHistoryKey } from "../tweaks/preventMovementHistory.mjs"; + +Hooks.on(`oft.preRegisterTweak`, (tweakID) => { + if (game.system.id !== `crucible`) { return }; + + switch (tweakID) { + case preventMovementHistoryKey: + return false; + }; +}); diff --git a/module/oft.mjs b/module/oft.mjs index 8740d00..12a83bf 100644 --- a/module/oft.mjs +++ b/module/oft.mjs @@ -2,3 +2,6 @@ import "./hooks/init.mjs"; import "./hooks/setup.mjs"; import "./hooks/renderSettingsConfig.mjs"; + +// Compatibility w/ other packages +import "./conflicts/crucible.mjs";