Add tweak blocking for when Crucible is the game system
This commit is contained in:
parent
ce994f5daf
commit
00af9286d4
2 changed files with 13 additions and 0 deletions
10
module/conflicts/crucible.mjs
Normal file
10
module/conflicts/crucible.mjs
Normal file
|
|
@ -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;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
@ -2,3 +2,6 @@
|
||||||
import "./hooks/init.mjs";
|
import "./hooks/init.mjs";
|
||||||
import "./hooks/setup.mjs";
|
import "./hooks/setup.mjs";
|
||||||
import "./hooks/renderSettingsConfig.mjs";
|
import "./hooks/renderSettingsConfig.mjs";
|
||||||
|
|
||||||
|
// Compatibility w/ other packages
|
||||||
|
import "./conflicts/crucible.mjs";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue